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 08211e9a64dbe5fbddaebff2da66286607f3ff04..109b0c7fe922e5f0b49c9ab8647398aca7f7a4a1 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
@@ -484,7 +484,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
initializer = buildInvalidInitializer(node, token.charOffset); |
} |
_typeInferrer.inferInitializer(initializer); |
- if (member is KernelConstructorBuilder) { |
+ if (member is KernelConstructorBuilder && !member.isExternal) { |
member.addInitializer(initializer); |
} else { |
addCompileTimeError( |