| Index: pkg/compiler/lib/src/typechecker.dart
|
| diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
|
| index 56f1326d024033541f79770a82fb54e818f76f2a..69137ab1fe80fdf67cc45060b05385a93e3a9f9c 100644
|
| --- a/pkg/compiler/lib/src/typechecker.dart
|
| +++ b/pkg/compiler/lib/src/typechecker.dart
|
| @@ -771,7 +771,8 @@ class TypeCheckerVisitor extends Visitor<DartType> {
|
| return access;
|
| }
|
| if (receiverElement != null &&
|
| - (receiverElement.isVariable || receiverElement.isParameter ||
|
| + (receiverElement.isVariable ||
|
| + receiverElement.isParameter ||
|
| (receiverElement.isInitializingFormal &&
|
| compiler.options.enableInitializingFormalAccess))) {
|
| Link<TypePromotion> typePromotions = typePromotionsMap[receiverElement];
|
| @@ -1089,7 +1090,8 @@ class TypeCheckerVisitor extends Visitor<DartType> {
|
| }
|
|
|
| ElementAccess createPromotedAccess(Element element) {
|
| - if (element.isVariable || element.isParameter ||
|
| + if (element.isVariable ||
|
| + element.isParameter ||
|
| (element.isInitializingFormal &&
|
| compiler.options.enableInitializingFormalAccess)) {
|
| TypePromotion typePromotion = getKnownTypePromotion(element);
|
|
|