Index: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart |
index 63e14f98b8b68d83ea3b786189df6a695c5516bf..93262f8a178fce7b3124af69a839a76a986a2954 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart |
@@ -174,14 +174,14 @@ class PlaceholderCollector extends Visitor { |
void collectFunctionDeclarationPlaceholders( |
FunctionElement element, FunctionExpression node) { |
if (element.isGenerativeConstructor() || element.isFactoryConstructor()) { |
- DartType type = element.getEnclosingClass().type.asRaw(); |
+ DartType type = element.getEnclosingClass().thisType.asRaw(); |
makeConstructorPlaceholder(node.name, element, type); |
Return bodyAsReturn = node.body.asReturn(); |
if (bodyAsReturn != null && bodyAsReturn.isRedirectingFactoryBody) { |
// Factory redirection. |
FunctionElement redirectTarget = element.defaultImplementation; |
assert(redirectTarget != null && redirectTarget != element); |
- type = redirectTarget.getEnclosingClass().type.asRaw(); |
+ type = redirectTarget.getEnclosingClass().thisType.asRaw(); |
makeConstructorPlaceholder( |
bodyAsReturn.expression, redirectTarget, type); |
} |