Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
index 08376c88790cd70b57f4e0c3b0998e1f49fd448a..4d2a9590e3973cd41ac524692653c1eea16babff 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
@@ -6,6 +6,7 @@ import '../common.dart'; |
import '../common_elements.dart'; |
import '../constants/values.dart'; |
import '../elements/elements.dart'; |
+import '../elements/types.dart' show TypeVariableType; |
import '../elements/entities.dart'; |
import '../elements/resolution_types.dart'; |
import '../io/code_output.dart'; |
@@ -344,7 +345,8 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> { |
} |
jsAst.Expression _reifiedTypeArguments(ResolutionInterfaceType type) { |
- jsAst.Expression unexpected(ResolutionTypeVariableType variable) { |
+ jsAst.Expression unexpected(TypeVariableType _variable) { |
+ ResolutionTypeVariableType variable = _variable; |
throw new SpannableAssertionFailure( |
NO_LOCATION_SPANNABLE, |
"Unexpected type variable '${variable.getStringAsDeclared(null)}'" |