| library test /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| // x = /*error:INVALID_ASSIGNMENT*/ "hi"; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| // y = /*error:INVALID_ASSIGNMENT*/ "hi"; |
| // ^ |
| // |
| import self as self; |
| import "infer_from_variables_in_non_cycle_imports_with_flag_a.dart" as inf; |
| import "dart:core" as core; |
| |
| import "org-dartlang-testcase:///infer_from_variables_in_non_cycle_imports_with_flag_a.dart"; |
| |
| static field core::int y = inf::x; |
| static method test1() → dynamic { |
| inf::x = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; |
| ^" in "hi" as{TypeError,ForNonNullableByDefault} core::int; |
| self::y = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| y = /*error:INVALID_ASSIGNMENT*/ \"hi\"; |
| ^" in "hi" as{TypeError,ForNonNullableByDefault} core::int; |
| } |
| static method main() → dynamic {} |
| |
| library /*isNonNullableByDefault*/; |
| import self as inf; |
| import "dart:core" as core; |
| |
| static field core::int x = 2; |
| static method main() → dynamic { |
| inf::x; |
| } |