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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/type_mask.dart

Issue 23353002: Fix receiver refining optimization in the presence of null: any Object method can be called on the … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/types/type_mask.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/type_mask.dart (revision 26345)
+++ sdk/lib/_internal/compiler/implementation/types/type_mask.dart (working copy)
@@ -13,7 +13,7 @@
factory TypeMask(DartType base, int kind, bool isNullable)
=> new FlatTypeMask(base, kind, isNullable);
- factory TypeMask.empty() => new FlatTypeMask.empty();
+ const factory TypeMask.empty() = FlatTypeMask.empty;
factory TypeMask.exact(DartType base) => new FlatTypeMask.exact(base);
factory TypeMask.subclass(DartType base) => new FlatTypeMask.subclass(base);

Powered by Google App Engine
This is Rietveld 408576698