blob: 019571a05a842705bbfe072f9844e9ed4eeb891c [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/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);
}