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

Unified Diff: lib/compiler/implementation/world.dart

Issue 10310075: Fix typing spotted by checked mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/world.dart
===================================================================
--- lib/compiler/implementation/world.dart (revision 7451)
+++ lib/compiler/implementation/world.dart (working copy)
@@ -10,9 +10,9 @@
void populate(Compiler compiler, Collection<LibraryElement> libraries) {
void addSubtypes(ClassElement cls) {
for (Type type in cls.allSupertypes) {
- List<Element> subtypes = subtypes.putIfAbsent(
+ Set<Element> subtypes = subtypes.putIfAbsent(
type.element,
- () => <ClassElement>[]);
+ () => new Set<ClassElement>());
subtypes.add(cls);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698