blob: 3a5b1a76e3a8eb5bb125fc8ad164fe19f8eb56d2 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/type_variable_prefix.dart:8:3: Error: 'T.String' can't be used as a type because 'T' doesn't refer to an import prefix.
// T.String method() => "Hello, World!";
// ^^^^^^^^
//
import self as self;
import "dart:core" as core;
import "dart:core" as T;
class C<T extends core::Object* = dynamic> extends core::Object {
synthetic constructor •() self::C<self::C::T*>*
: super core::Object::•()
;
method method() invalid-type
return "Hello, World!" as{TypeError} invalid-type;
}
static method main() dynamic {
core::String* s = new self::C::•<dynamic>().{self::C::method}() as{TypeError} core::String*;
core::print(s);
}