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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 2995763003: Fix deferred bug: when type argument is never instantiated (Closed)
Patch Set: makeit conditional to prevent infinite recursion Created 3 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
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 155c54dc39a247e03d71e6503ebdc1162db6b85c..fe9a4731edb41b6c4a3165dc2a876a4fb0ccfd1d 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -319,7 +319,9 @@ class DeferredLoadTask extends CompilerTask {
elements.add(type.element);
collectTypeDependencies(type.unaliased);
} else if (type is ResolutionInterfaceType) {
- elements.add(type.element);
+ if (elements.add(type.element)) {
+ collectTypeDependencies(type.element.supertype);
Siggi Cherem (dart-lang) 2017/08/11 21:34:52 I believe this may be including transitive deps, w
+ }
}
}
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698