Index: pkg/compiler/lib/src/resolution/constructors.dart |
diff --git a/pkg/compiler/lib/src/resolution/constructors.dart b/pkg/compiler/lib/src/resolution/constructors.dart |
index ae51c80018dd6a9d78f4142fc999cf01c73a8048..6a4ab3bfc9fa70b0afb59aacbe0ce1ed9f0393af 100644 |
--- a/pkg/compiler/lib/src/resolution/constructors.dart |
+++ b/pkg/compiler/lib/src/resolution/constructors.dart |
@@ -345,7 +345,7 @@ class InitializerResolver { |
if (!field.isMalformed) { |
registry.registerStaticUse(new StaticUse.fieldInit(field)); |
} |
- checkForDuplicateInitializers(field, element.initializer); |
+ checkForDuplicateInitializers(field, parameterNode); |
visitor.defineLocalVariable(parameterNode, initializingFormal); |
visitor.addToScope(initializingFormal); |
if (isConst) { |