Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: pkg/compiler/lib/src/js_backend/constant_emitter.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)}'"

Powered by Google App Engine
This is Rietveld 408576698