blob: 9c05cb5056864f4ce449a594f04260cabede0271 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Null x = null;
// ^
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:9:5: Error: The method 'foo' isn't defined for the class 'Null'.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Try correcting the name to the name of an existing method, or defining a method named 'foo'.
// x.foo();
// ^^^
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:11:5: Error: The method 'foo' isn't defined for the class 'Null?'.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Try correcting the name to the name of an existing method, or defining a method named 'foo'.
// y.foo();
// ^^^
//
import self as self;
import "dart:core" as core;
class Null extends core::Object {
synthetic constructor •() self::Null
: super core::Object::•()
;
}
static method test() dynamic {
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Null x = null;
^" in let Null #t1 = null in #t1 == null ?{self::Null} #t1 as{TypeError,ForNonNullableByDefault} self::Null : #t1{self::Null};
invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:9:5: Error: The method 'foo' isn't defined for the class 'Null'.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
x.foo();
^^^" in x{<unresolved>}.foo();
self::Null? y = null;
invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:11:5: Error: The method 'foo' isn't defined for the class 'Null?'.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
y.foo();
^^^" in y{<unresolved>}.foo();
}
static method main() dynamic {}