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 e3df4f8bff87a5f9e0e13badb8a6a06b4e442a96..4287b9feb912b2eee3cfbeb6183ca940df3b2b60 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -2573,6 +2573,11 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
} else { |
semantics = new StaticAccess.parameter(element); |
} |
+ } else if (element.isInitializingFormal && |
+ compiler.options.enableInitializingFormalAccess) { |
+ error = reportAndCreateErroneousElement(node.selector, name.text, |
+ MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER, {'name': name}); |
+ semantics = new StaticAccess.finalParameter(element); |
} else if (element.isVariable) { |
if (element.isFinal || element.isConst) { |
error = reportAndCreateErroneousElement(node.selector, name.text, |