blob: 6b546322aa523eb572cfffa189796b619983228f [file] [log] [blame]
// Unhandled errors:
//
// pkg/front_end/testcases/regress/issue_32200.dart:8:3: Error: 'self.Foo' can't be used as a type because 'self' doesn't refer to an import prefix.
// self.Foo self;
// ^^^^^^^^
library;
import self as self;
import "dart:core" as core;
class Foo extends core::Object {
field invalid-type self = null;
synthetic constructor •() self::Foo
: super core::Object::•()
;
}
static method main() dynamic {
self::Foo instance = new self::Foo::•();
instance.{self::Foo::self} = let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_32200.dart:13:19: Error: A value of type '#lib1::Foo' can't be assigned to a variable of type 'invalid-type'.
Try changing the type of the left hand side, or casting the right hand side to 'invalid-type'.
instance.self = instance;
^" in instance as{TypeError} invalid-type;
}