Skip to content

Commit

Permalink
Make argument to featureValueOf dynamic (dart-lang/matcher#164)
Browse files Browse the repository at this point in the history
Similar to dart-lang/matcher#163 changing the argument type from implicit `dynamic` to
`Object` for implementations that don't specify the type since inference
will pick the argument type from the overridden method.
  • Loading branch information
natebosch authored Dec 29, 2020
1 parent a692773 commit 677616e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/matcher/lib/src/custom_matcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CustomMatcher extends Matcher {
: _matcher = wrapMatcher(valueOrMatcher);

/// Override this to extract the interesting feature.
Object? featureValueOf(Object? actual) => actual;
Object? featureValueOf(dynamic actual) => actual;

@override
bool matches(Object? item, Map matchState) {
Expand Down

0 comments on commit 677616e

Please sign in to comment.