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

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

Issue 14751009: Re-apply https://codereview.chromium.org/14636002/, but this time avoid creating TypeMask with dyna… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/concrete_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (revision 22306)
+++ sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (working copy)
@@ -833,6 +833,8 @@
if (element != null) {
if (element == compiler.numClass) {
return new TypeMask.nonNullSubclass(compiler.numClass.rawType);
+ } else if (element == compiler.dynamicClass) {
+ return new TypeMask.nonNullSubclass(compiler.objectClass.rawType);
} else {
return new TypeMask.nonNullExact(element.rawType);
}

Powered by Google App Engine
This is Rietveld 408576698