Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index f91b14811222dcf871bf1806e2632748dc0c34ee..fde6d35f038cc9cdecb325e166546ddc185c1789 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -3722,7 +3722,7 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
redirectionTarget, |
redirectionTarget.enclosingClass.thisType |
.subst(type.typeArguments, targetClass.typeVariables))); |
- if (resolution.commonElements.isSymbolConstructor(enclosingElement)) { |
+ if (resolution.commonElements.isSymbolConstructor(constructor)) { |
registry.registerFeature(Feature.SYMBOL_CONSTRUCTOR); |
} |
if (isValidAsConstant) { |