Index: pkg/compiler/lib/src/resolution/resolution_strategy.dart |
diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart |
index c173ca30b861911e49c20b03dafa76fd15c92b39..2400bd99d121d7c45ce668f35138d7fce8d33433 100644 |
--- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart |
+++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart |
@@ -105,7 +105,8 @@ class ResolutionFrontEndStrategy implements FrontEndStrategy { |
new MirrorsResolutionAnalysisImpl(backend, _compiler.resolution); |
RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() { |
- return new RuntimeTypesNeedBuilderImpl(); |
+ return new ResolutionRuntimeTypesNeedBuilderImpl( |
+ elementEnvironment, _compiler.types); |
} |
ResolutionWorldBuilder createResolutionWorldBuilder( |
@@ -229,6 +230,11 @@ class _CompilerElementEnvironment implements ElementEnvironment { |
} |
@override |
+ bool isGenericClass(ClassEntity cls) { |
+ return getThisType(cls).typeArguments.isNotEmpty; |
+ } |
+ |
+ @override |
ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) { |
return typeVariable.bound; |
} |