blob: 99501ae6951cc86724ffcc6db51ae13ceaa5d145 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/rasta/type_with_parse_error.dart:21:7: Error: Expected ';' after this.
// int i
// ^
//
// pkg/front_end/testcases/rasta/type_with_parse_error.dart:21:7: Error: Field 'i' should be initialized because its type 'int' doesn't allow null.
// int i
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
method foo() dynamic {
new self::B::•<self::A>();
}
}
class B<T extends core::Object? = dynamic> extends core::Object {
field core::int i = null;
synthetic constructor •() self::B<self::B::T%>
: super core::Object::•()
;
}
static method main() dynamic {
new self::B::•<self::A>();
}