| Index: sdk/lib/_internal/compiler/implementation/warnings.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| index c108cf83ab36a965fee6166061a65fefb4c3a005..b55b0260f8c9119bd7be78b587d3f1e44eabf6f2 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| @@ -418,6 +418,21 @@ main() => new C(0);"""]);
|
| static const MessageKind CANNOT_INSTANTIATE_TYPEDEF = const MessageKind(
|
| 'Error: Cannot instantiate typedef "#{typedefName}".');
|
|
|
| + static const MessageKind TYPEDEF_FORMAL_WITH_DEFAULT = const MessageKind(
|
| + "Error: A parameter of a typedef can't specify a default value.",
|
| + howToFix: "Remove the default value.",
|
| + examples: const ["""
|
| +typedef void F([int arg = 0]);
|
| +
|
| +main() {
|
| + F f;
|
| +}""", """
|
| +typedef void F({int arg: 0});
|
| +
|
| +main() {
|
| + F f;
|
| +}"""]);
|
| +
|
| static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind(
|
| 'Error: Cannot instantiate type variable "#{typeVariableName}".');
|
|
|
|
|