Index: pkg/compiler/lib/src/serialization/modelz.dart |
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart |
index 3c10292cf4e2079c6d044f9dc1d819f0af9b7bb2..9664bbde714399992033d6cd7217fe01bf4d9e5e 100644 |
--- a/pkg/compiler/lib/src/serialization/modelz.dart |
+++ b/pkg/compiler/lib/src/serialization/modelz.dart |
@@ -1256,7 +1256,7 @@ class ForwardingConstructorElementZ extends ElementZ |
@override |
InterfaceType computeEffectiveTargetType(InterfaceType newType) { |
- return enclosingClass.thisType; |
+ return enclosingClass.thisType.substByContext(newType); |
} |
@override |