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

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

Issue 1641883002: Fix analyzer warnings in assertions of the TypeExpression CL (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 7f176fd664ce3516d3a73108591a42cad60ca925..1815ee2a8b7905d76029859c51408e619a36cdf8 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -992,7 +992,8 @@ class CodeGenerator extends tree_ir.StatementVisitor
node.dartType, arguments, registry);
case tree_ir.TypeExpressionKind.INSTANCE:
// We expect only flat types for the INSTANCE representation.
- assert(node.dartType == node.dartType.element.thisType);
+ assert(node.dartType ==
+ (node.dartType.element as ClassElement).thisType);
registry.registerInstantiatedClass(glue.listClass);
return new js.ArrayInitializer(arguments);
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698