Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index 16843b3333342605ace7f0962930985b4e6c28fb..27f164f94d1af5502eacaa862035eda40d8ce5bd 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -1310,6 +1310,8 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
Node right = node.arguments.head; |
visitExpression(left); |
visitExpression(right); |
+ registry.registerConstantLiteral(new NullConstantExpression()); |
+ registry.registerDynamicUse(new DynamicUse(Selectors.equals, null)); |
registry.registerSendStructure(node, const IfNullStructure()); |
return const NoneResult(); |
} |