blob: 22a8b9743b5f85f75a92d11d139fc8841f593199 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/invalid_type.dart:7:5: Error: Expected identifier, but got 'this'.
// this.bar();
// ^^^^
//
// pkg/front_end/testcases/general/invalid_type.dart:12:12: Error: 'Missing' isn't a type.
// (null as Missing).bar();
// ^^^^^^^
//
// pkg/front_end/testcases/general/invalid_type.dart:13:8: Error: The method 'bar' isn't defined for the class 'Null'.
// Try correcting the name to the name of an existing method, or defining a method named 'bar'.
// null.bar();
// ^^^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
synthetic constructor •() self::C
: super core::Object::•()
;
static method foo() dynamic {
invalid-expression "pkg/front_end/testcases/general/invalid_type.dart:7:5: Error: Expected identifier, but got 'this'.
this.bar();
^^^^"{dynamic}.bar();
}
}
static method test() dynamic {
(null as{ForNonNullableByDefault} invalid-type){dynamic}.bar();
invalid-expression "pkg/front_end/testcases/general/invalid_type.dart:13:8: Error: The method 'bar' isn't defined for the class 'Null'.
Try correcting the name to the name of an existing method, or defining a method named 'bar'.
null.bar();
^^^" in null{<unresolved>}.bar();
}
static method main() dynamic {}
Extra constant evaluation status:
Evaluated: AsExpression @ org-dartlang-testcase:///invalid_type.dart:12:9 -> NullConstant(null)
Extra constant evaluation: evaluated: 3, effectively constant: 1