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

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

Issue 52263003: Implement least upper bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/closure.dart
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart
index cb2be384df8cfeeefa31795cd462e49030406639..85930ff7892070afc57584e5d467ed245cdeddd1 100644
--- a/sdk/lib/_internal/compiler/implementation/closure.dart
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart
@@ -131,8 +131,9 @@ class ClosureClassElement extends ClassElementX {
superclass.ensureResolved(compiler);
supertype = superclass.computeType(compiler);
interfaces = const Link<DartType>();
- allSupertypes = const Link<DartType>().prepend(supertype);
thisType = rawType = new InterfaceType(this);
+ allSupertypesAndSelf =
+ superclass.allSupertypesAndSelf.extendClass(thisType);
}
bool isClosure() => true;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698