Chromium Code Reviews| Index: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
| diff --git a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
| index 8c86f466743977d15af879c43e449efd3082abb0..e66ac266e369953b829538d2a0b09f6a0a2d636a 100644 |
| --- a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
| +++ b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart |
| @@ -4,7 +4,6 @@ |
| import '../common.dart'; |
| import '../common/names.dart' show Identifiers, Names, Selectors; |
| -import '../common_elements.dart'; |
| import '../elements/elements.dart'; |
| import '../elements/entities.dart'; |
| import '../types/types.dart'; |
| @@ -92,7 +91,9 @@ class NoSuchMethodRegistry { |
| /// that have a return type. |
| void onTypeInferenceComplete(GlobalTypeInferenceResults results) { |
| otherImpls.forEach((FunctionEntity element) { |
| - if (results.resultOfMember(element as MemberEntity).throwsAlways) { |
| + if (results.resultOfMember( |
| + // ignore: ARGUMENT_TYPE_NOT_ASSIGNABLE |
| + element).throwsAlways) { |
|
Johnni Winther
2017/04/03 12:07:33
Reinsert the cast and ignore the hint.
ahe
2017/04/03 12:25:07
Done.
|
| complexNoReturnImpls.add(element); |
| } else { |
| complexReturningImpls.add(element); |