Index: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
index 1c05b7769f359d152143fea42439ca4d6e7c457b..57b790471435c2adfdde9242567c2eca37e18282 100644 |
--- a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart |
@@ -403,7 +403,7 @@ class ConcreteTypesEnvironment { |
Types types = inferrer.compiler.types; |
bool paramMatches(ConcreteType concrete, VariableElement parameter) { |
DartType parameterType = parameter.variables.type; |
- if (parameterType.isDynamic || parameterType.isRaw) { |
+ if (parameterType.treatAsDynamic || parameterType.isRaw) { |
return true; |
} |
for (BaseType baseType in concrete.baseTypes) { |
@@ -1221,7 +1221,7 @@ class ConcreteTypesInferrer extends TypesInferrer { |
for (final type in typesReturned) { |
if (type == native.SpecialType.JsObject) { |
registerDynamic(); |
- } else if (type.isDynamic) { |
+ } else if (type.treatAsDynamic) { |
registerDynamic(); |
} else { |
ClassElement element = type.element; |