f66e1ed7be
Change-Id: I5cc3339880d0a77fbbcbd9f8a22e1186e5e2a5df Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145380 Reviewed-by: Johnni Winther <johnniwinther@google.com>
16 lines
318 B
Plaintext
16 lines
318 B
Plaintext
class Class {
|
|
A nonNullableField = const A();
|
|
A get nonNullableProperty => nonNullableField;
|
|
void set nonNullableProperty(A value) {}
|
|
A nonNullableMethod() => nonNullableField;
|
|
}
|
|
|
|
class A {
|
|
const A();
|
|
A get nonNullableProperty => this;
|
|
}
|
|
|
|
main() {}
|
|
expect(expected, actual) {}
|
|
throws(void Function() f) {}
|