Index: pkg/compiler/lib/src/resolution/type_resolver.dart |
diff --git a/pkg/compiler/lib/src/resolution/type_resolver.dart b/pkg/compiler/lib/src/resolution/type_resolver.dart |
index c1fb6cc72ced5caf80a69ea8fae17077d8e3cc0a..274911d48a01e731788cd3db32157b573c8e2de8 100644 |
--- a/pkg/compiler/lib/src/resolution/type_resolver.dart |
+++ b/pkg/compiler/lib/src/resolution/type_resolver.dart |
@@ -176,7 +176,8 @@ class TypeResolver { |
} else { |
type = new InterfaceType( |
cls.declaration, arguments.toList(growable: false)); |
- addTypeVariableBoundsCheck = true; |
+ addTypeVariableBoundsCheck = |
+ arguments.any((DartType type) => !type.isDynamic); |
} |
} |
} else if (element.isTypedef) { |
@@ -195,7 +196,8 @@ class TypeResolver { |
type = typdef.rawType; |
} else { |
type = new TypedefType(typdef, arguments.toList(growable: false)); |
- addTypeVariableBoundsCheck = true; |
+ addTypeVariableBoundsCheck = |
+ arguments.any((DartType type) => !type.isDynamic); |
} |
} |
} else if (element.isTypeVariable) { |