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

Unified Diff: sdk/lib/_internal/compiler/implementation/typechecker.dart

Issue 23819039: Create type masks lazily. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update cf. comment Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/typechecker.dart
diff --git a/sdk/lib/_internal/compiler/implementation/typechecker.dart b/sdk/lib/_internal/compiler/implementation/typechecker.dart
index 3c8bae65cb22613fbe268069c912b2f607ddcacf..61191fcc2b5900a0fd674a06fda867ccc8b10ad9 100644
--- a/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -592,7 +592,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
return const DynamicAccess();
} else if (element.impliesType()) {
// The literal `Foo` where Foo is a class, a typedef, or a type variable.
- if (elements.getType(node) != null) {
+ if (elements.isTypeLiteral(node)) {
assert(invariant(node, identical(compiler.typeClass,
elements.getType(node).element),
message: 'Expected type literal type: '

Powered by Google App Engine
This is Rietveld 408576698