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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 19811002: Do not emit substitutions for unnamed mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 2302aec5576d8b4dd92cbe738a3cf234332b6724..430c72e0f698205011849e717d7aec10cdc526a3 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -2029,6 +2029,9 @@ class CodeEmitterTask extends CompilerTask {
bool haveSameTypeVariables(ClassElement a, ClassElement b) {
if (a.isClosure()) return true;
+ if (b.isUnnamedMixinApplication) {
+ return false;
+ }
return a.typeVariables == b.typeVariables;
}

Powered by Google App Engine
This is Rietveld 408576698