Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
index 0785c5ca4c2a9c53145af84ade12fee47e7b2160..50c17cbb4d004483065c8ea0d578ea748537c30c 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
@@ -511,7 +511,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
initializer = buildFieldInitializer(true, formal.name, |
formal.charOffset, new VariableGet(formal.declaration)); |
} |
- member.addInitializer(initializer); |
+ member.addInitializer(initializer, _typeInferrer); |
} |
} |
} |
@@ -573,7 +573,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
} |
_typeInferrer.inferInitializer(initializer); |
if (member is KernelConstructorBuilder && !member.isExternal) { |
- member.addInitializer(initializer); |
+ member.addInitializer(initializer, _typeInferrer); |
} else { |
deprecated_addCompileTimeError( |
token.charOffset, "Can't have initializers: ${member.name}"); |