| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/records/metadata.dart:13:16: Error: Annotations can't have spaces or comments before the parenthesis. |
| // Remove any spaces or comments before the parenthesis. |
| // @metadata<int> (int, int) a = (42, 42); |
| // ^ |
| // |
| // pkg/front_end/testcases/records/metadata.dart:13:27: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name. |
| // Try adding the name of the type of the variable or the keyword 'var'. |
| // @metadata<int> (int, int) a = (42, 42); |
| // ^ |
| // |
| // pkg/front_end/testcases/records/metadata.dart:13:16: Error: Too many positional arguments: 0 allowed, but 2 found. |
| // Try removing the extra positional arguments. |
| // @metadata<int> (int, int) a = (42, 42); |
| // ^ |
| // pkg/front_end/testcases/records/metadata.dart:6:9: Context: Found this candidate, but the arguments don't match. |
| // const metadata(); |
| // ^^^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class metadata<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ { |
| const constructor •() → self::metadata<self::metadata::T%> |
| : super core::Object::•() |
| ; |
| } |
| @invalid-expression "pkg/front_end/testcases/records/metadata.dart:13:16: Error: Too many positional arguments: 0 allowed, but 2 found. |
| Try removing the extra positional arguments. |
| @metadata<int> (int, int) a = (42, 42); |
| ^" |
| static field (core::int, core::int) a = (42, 42); |