library /*isNonNullableByDefault*/; // // Problems in library: // // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:21:2: Error: Expected 1 type arguments. // @A() // error // ^ // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:6:9: Context: Found this candidate, but the arguments don't match. // const A(); // ^ // // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:22:2: Error: Expected 2 type arguments. // @B() // error // ^ // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:10:9: Context: Found this candidate, but the arguments don't match. // const B(); // ^ // // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:23:2: Error: Type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'C'. // Try changing type arguments so that they conform to the bounds. // @C() // error // ^ // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:13:9: Context: This is the type variable whose bound isn't conformed to. // class C { // ^ // // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:24:2: Error: Type argument 'num' doesn't conform to the bound 'S' of the type variable 'T' on 'D'. // Try changing type arguments so that they conform to the bounds. // @D() // error // ^ // pkg/front_end/testcases/generic_metadata/generic_metadata.dart:17:24: Context: This is the type variable whose bound isn't conformed to. // class D { // ^ // import self as self; import "dart:core" as core; class A extends core::Object /*hasConstConstructor*/ { const constructor •() → self::A : super core::Object::•() ; } class B extends core::Object /*hasConstConstructor*/ { const constructor •() → self::B : super core::Object::•() ; } class C extends core::Object /*hasConstConstructor*/ { const constructor •() → self::C : super core::Object::•() ; } class D extends core::Object /*hasConstConstructor*/ { const constructor •() → self::D : super core::Object::•() ; } @invalid-expression "pkg/front_end/testcases/generic_metadata/generic_metadata.dart:21:2: Error: Expected 1 type arguments. @A() // error ^" @invalid-expression "pkg/front_end/testcases/generic_metadata/generic_metadata.dart:22:2: Error: Expected 2 type arguments. @B() // error ^" @#C1 @#C2 static method test() → dynamic {} @#C3 @#C4 @#C5 @#C6 @#C7 @#C7 @#C8 @#C9 @#C9 @#C10 static method main() → dynamic {} constants { #C1 = self::C {} #C2 = self::D {} #C3 = self::A {} #C4 = self::A {} #C5 = self::B {} #C6 = self::B {} #C7 = self::C {} #C8 = self::C {} #C9 = self::D {} #C10 = self::D {} } Constructor coverage from constants: org-dartlang-testcase:///generic_metadata.dart: - C. (from org-dartlang-testcase:///generic_metadata.dart:14:9) - Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart:25:9) - D. (from org-dartlang-testcase:///generic_metadata.dart:18:9) - A. (from org-dartlang-testcase:///generic_metadata.dart:6:9) - B. (from org-dartlang-testcase:///generic_metadata.dart:10:9)