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

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

Issue 15381002: Fix a pretty bad bug of a class inheriting a patched class. The fix is (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 22929)
+++ sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (working copy)
@@ -1098,7 +1098,7 @@
} else if (type.element == compiler.boolClass) {
concreteType = singletonConcreteType(baseTypes.boolBaseType);
} else {
- Set<ClassElement> subtypes = compiler.world.subtypes[type.element];
+ Set<ClassElement> subtypes = compiler.world.subtypesOf(type.element);
if (subtypes == null) continue;
concreteType = emptyConcreteType;
for (ClassElement subtype in subtypes) {
@@ -1221,7 +1221,7 @@
if (type == null) {
uninitializedFields.add(field);
}
- }, includeSuperMembers: false);
+ });
// handle initializing formals
element.functionSignature.forEachParameter((param) {

Powered by Google App Engine
This is Rietveld 408576698