| Index: pkg/compiler/lib/src/diagnostics/messages.dart
|
| diff --git a/pkg/compiler/lib/src/diagnostics/messages.dart b/pkg/compiler/lib/src/diagnostics/messages.dart
|
| index 11c00009a38df4775deab5680cb2f216377f2376..472e0166cb02acd0a05a01edc58120217f0f6979 100644
|
| --- a/pkg/compiler/lib/src/diagnostics/messages.dart
|
| +++ b/pkg/compiler/lib/src/diagnostics/messages.dart
|
| @@ -3626,15 +3626,18 @@ part of test.main;
|
| MessageKind.EXTERNAL_WITH_BODY: const MessageTemplate(
|
| MessageKind.EXTERNAL_WITH_BODY,
|
| "External function '#{functionName}' cannot have a function body.",
|
| - options: const ["--output-type=dart"],
|
| howToFix:
|
| "Try removing the 'external' modifier or the function body.",
|
| examples: const [
|
| """
|
| +import 'package:js/js.dart';
|
| +@JS()
|
| external foo() => 0;
|
| main() => foo();
|
| """,
|
| """
|
| +import 'package:js/js.dart';
|
| +@JS()
|
| external foo() {}
|
| main() => foo();
|
| """
|
|
|