blob: cd875cb9a337a465014d46ba10a16e4b9b4e08c2 [file] [log] [blame]
library;
//
// Problems in library:
//
// 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;
// ^^^^^^^^
//
// pkg/front_end/testcases/regress/issue_32200.dart:13:19: Error: A value of type 'Foo' can't be assigned to a variable of type 'invalid-type'.
// - 'Foo' is from 'pkg/front_end/testcases/regress/issue_32200.dart'.
// Try changing the type of the left hand side, or casting the right hand side to 'invalid-type'.
// instance.self = instance;
// ^
//
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 'Foo' can't be assigned to a variable of type 'invalid-type'.
- 'Foo' is from 'pkg/front_end/testcases/regress/issue_32200.dart'.
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;
}