blob: e166136e5f9ee6cccf60278d0c8e1dc6a728ba6c [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/coverage/metadata_test.dart:16:3: Error: An annotation can't use type arguments.
// @C<dynamic>() // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_test.dart:17:3: Error: An annotation can't use type arguments.
// @C<int>() // Error
// ^
//
import self as self;
import "dart:core" as core;
class C<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ {
const constructor •() self::C<self::C::T%>
: super core::Object::•()
;
}
@self::C::•<dynamic>()
@self::C::•<dynamic>()
@self::C::•<core::int>()
static method foo() void
;
Extra constant evaluation status:
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///metadata_test.dart:15:2 -> InstanceConstant(const C<dynamic>{})
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///metadata_test.dart:16:2 -> InstanceConstant(const C<dynamic>{})
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///metadata_test.dart:17:2 -> InstanceConstant(const C<int>{})
Extra constant evaluation: evaluated: 3, effectively constant: 3