blob: 65b8b2532542a2a4908a9836224bd6fb8a7fa96a [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41700a.dart:7:5: Error: The method 'foo' isn't defined for the class 'Null'.
// Try correcting the name to the name of an existing method, or defining a method named 'foo'.
// x.foo();
// ^^^
//
// pkg/front_end/testcases/nnbd/issue41700a.dart:9:5: Error: The method 'foo' isn't defined for the class 'Null'.
// 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;
static method test() dynamic {
core::Null? x = null;
invalid-expression "pkg/front_end/testcases/nnbd/issue41700a.dart:7:5: Error: The method 'foo' isn't defined for the class 'Null'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
x.foo();
^^^";
core::Null? y = null;
invalid-expression "pkg/front_end/testcases/nnbd/issue41700a.dart:9:5: Error: The method 'foo' isn't defined for the class 'Null'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
y.foo();
^^^";
}
static method main() dynamic {}