| library test; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:61: Error: Getter not found: 'x'. |
| // var /*@topType=B*/ b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. |
| // /*error:UNDEFINED_IDENTIFIER*/ x |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:34:79: Error: The method 'unary-' isn't defined for the class 'A'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'unary-'. |
| // var /*@topType=dynamic*/ i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/ -new A(); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'A'. |
| // a = /*error:INVALID_ASSIGNMENT*/ "hi"; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:40:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| // b = /*error:INVALID_ASSIGNMENT*/ "hi"; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:43:59: Error: A value of type 'Set<dynamic>' can't be assigned to a variable of type 'List<dynamic>'. |
| // - 'Set' is from 'dart:core'. |
| // - 'List' is from 'dart:core'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'List<dynamic>'. |
| // c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:45:59: Error: A value of type 'Set<dynamic>' can't be assigned to a variable of type 'List<dynamic>'. |
| // - 'Set' is from 'dart:core'. |
| // - 'List' is from 'dart:core'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'List<dynamic>'. |
| // c2 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map<dynamic, dynamic>'. |
| // - 'Map' is from 'dart:core'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'Map<dynamic, dynamic>'. |
| // d = /*error:INVALID_ASSIGNMENT*/ 3; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:67: Error: A value of type 'Map<dynamic, dynamic>' can't be assigned to a variable of type 'A'. |
| // - 'Map' is from 'dart:core'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'A'. |
| // e = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic, dynamic*/ {}; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'int'. |
| // f = /*error:INVALID_ASSIGNMENT*/ false; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:53:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'int'. |
| // g = /*error:INVALID_ASSIGNMENT*/ false; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:54:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| // h = /*error:INVALID_ASSIGNMENT*/ false; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:58:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| // j = /*error:INVALID_ASSIGNMENT*/ false; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:59:58: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'B'. |
| // - 'List' is from 'dart:core'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| // j = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ []; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| import "dart:collection" as col; |
| |
| class A extends core::Object { |
| field core::int x = null; |
| synthetic constructor •() → self::A |
| : super core::Object::•() |
| ; |
| operator +(dynamic other) → self::B |
| return null; |
| } |
| class B extends self::A { |
| constructor •(dynamic ignore) → self::B |
| : super self::A::•() |
| ; |
| } |
| static field self::A a = new self::A::•(); |
| static field self::B b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:61: Error: Getter not found: 'x'. |
| var /*@topType=B*/ b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations |
| ^"); |
| static field core::List<dynamic> c1 = <dynamic>[invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. |
| /*error:UNDEFINED_IDENTIFIER*/ x |
| ^"]; |
| static field core::List<dynamic> c2 = const <dynamic>[]; |
| static field core::Map<dynamic, dynamic> d = <dynamic, dynamic>{"a": "b"}; |
| static field self::A e = let final self::A #t1 = new self::A::•() in let final dynamic #t2 = #t1.{self::A::x} = 3 in #t1; |
| static field core::int f = 2.{core::num::+}(3); |
| static field core::int g = 3.{core::int::unary-}(); |
| static field self::B h = new self::A::•().{self::A::+}(3); |
| static field dynamic i = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:34:79: Error: The method 'unary-' isn't defined for the class 'A'. |
| - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try correcting the name to the name of an existing method, or defining a method named 'unary-'. |
| var /*@topType=dynamic*/ i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/ -new A(); |
| ^"; |
| static field self::B j = null as self::B; |
| static method test1() → dynamic { |
| self::a = let final<BottomType> #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. |
| - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'A'. |
| a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; |
| ^" in "hi" as{TypeError} self::A; |
| self::a = new self::B::•(3); |
| self::b = let final<BottomType> #t4 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:40:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. |
| - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; |
| ^" in "hi" as{TypeError} self::B; |
| self::b = new self::B::•(3); |
| self::c1 = <dynamic>[]; |
| self::c1 = let final core::Set<dynamic> #t5 = col::LinkedHashSet::•<dynamic>() in #t5; |
| self::c2 = <dynamic>[]; |
| self::c2 = let final core::Set<dynamic> #t6 = col::LinkedHashSet::•<dynamic>() in #t6; |
| self::d = <dynamic, dynamic>{}; |
| self::d = let final<BottomType> #t7 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map<dynamic, dynamic>'. |
| - 'Map' is from 'dart:core'. |
| Try changing the type of the left hand side, or casting the right hand side to 'Map<dynamic, dynamic>'. |
| d = /*error:INVALID_ASSIGNMENT*/ 3; |
| ^" in 3 as{TypeError} core::Map<dynamic, dynamic>; |
| self::e = new self::A::•(); |
| self::e = let final<BottomType> #t8 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:67: Error: A value of type 'Map<dynamic, dynamic>' can't be assigned to a variable of type 'A'. |
| - 'Map' is from 'dart:core'. |
| - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'A'. |
| e = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic, dynamic*/ {}; |
| ^" in <dynamic, dynamic>{} as{TypeError} self::A; |
| self::f = 3; |
| self::f = let final<BottomType> #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. |
| Try changing the type of the left hand side, or casting the right hand side to 'int'. |
| f = /*error:INVALID_ASSIGNMENT*/ false; |
| ^" in false as{TypeError} core::int; |
| self::g = 1; |
| self::g = let final<BottomType> #t10 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:53:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. |
| Try changing the type of the left hand side, or casting the right hand side to 'int'. |
| g = /*error:INVALID_ASSIGNMENT*/ false; |
| ^" in false as{TypeError} core::int; |
| self::h = let final<BottomType> #t11 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:54:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. |
| - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| h = /*error:INVALID_ASSIGNMENT*/ false; |
| ^" in false as{TypeError} self::B; |
| self::h = new self::B::•("b"); |
| self::i = false; |
| self::j = new self::B::•("b"); |
| self::j = let final<BottomType> #t12 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:58:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. |
| - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| j = /*error:INVALID_ASSIGNMENT*/ false; |
| ^" in false as{TypeError} self::B; |
| self::j = let final<BottomType> #t13 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:59:58: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'B'. |
| - 'List' is from 'dart:core'. |
| - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. |
| Try changing the type of the left hand side, or casting the right hand side to 'B'. |
| j = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ []; |
| ^" in <dynamic>[] as{TypeError} self::B; |
| } |
| static method main() → dynamic {} |