| 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);
|
| }
|
|
|
|
|