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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 120423006: Compute correct constructor type for synthesized mixin constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Platform.packageRoot. Created 6 years, 11 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/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index f72260c2246ddbec83d45be85d1f4bfe470ec8f5..78ad54785fa817a1fac5976c754e95d177c1b5c0 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1518,8 +1518,7 @@ class FunctionElementX extends ElementX implements FunctionElement {
assert(invariant(this, redirectionTargetType != null,
message: 'Redirection target type has not yet been computed for '
'$this.'));
- return redirectionTargetType.subst(newType.typeArguments,
- newType.element.typeVariables);
+ return redirectionTargetType.substByContext(newType);
}
/**
@@ -1671,6 +1670,8 @@ class SynthesizedConstructorElementX extends FunctionElementX {
return functionSignature = compiler.objectClass.localLookup('')
.computeSignature(compiler);
}
+ // TODO(johnniwinther): Ensure that the function signature (and with it the
+ // function type) substitutes type variables correctly.
return functionSignature = superMember.computeSignature(compiler);
}

Powered by Google App Engine
This is Rietveld 408576698