| library test; |
| import self as self; |
| import "./infer_type_regardless_of_declaration_order_or_cycles_b.dart" as inf; |
| import "dart:core" as core; |
| |
| class C extends inf::B { |
| synthetic constructor •() → self::C |
| : super inf::B::•() |
| ; |
| get x() → core::int |
| return null; |
| } |
| class A extends core::Object { |
| synthetic constructor •() → self::A |
| : super core::Object::•() |
| ; |
| get x() → core::int |
| return 0; |
| } |
| static method foo() → dynamic { |
| core::int y = new self::C::•().{self::C::x}; |
| core::String z = let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:69: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'. |
| Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'. |
| String z = /*error:INVALID_ASSIGNMENT*/ new C(). /*@target=C::x*/ x; |
| ^" in new self::C::•().{self::C::x} as{TypeError} core::String; |
| } |
| static method main() → dynamic { |
| self::foo(); |
| } |