|
| 1 | +// |
| 2 | +// Problems in component: |
| 3 | +// |
| 4 | +// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 5 | +// |
| 6 | +// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 7 | +// |
| 8 | +// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 9 | +// |
| 10 | +// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 11 | +// |
| 12 | +// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 13 | +// |
| 14 | +// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 15 | +// |
| 16 | +// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 17 | +// |
| 18 | +// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 19 | +// |
| 20 | +// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 21 | +// |
| 22 | +// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 23 | +// |
| 24 | +// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 25 | +// |
| 26 | +// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 27 | +// |
| 28 | +// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 29 | +// |
| 30 | +// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 31 | +// |
| 32 | +// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 33 | +// |
| 34 | +// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 35 | +// |
| 36 | +// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 37 | +// |
| 38 | +// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 39 | +// |
| 40 | +// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. |
| 41 | +// |
| 42 | +library; |
| 43 | +// |
| 44 | +// Problems in library: |
| 45 | +// |
| 46 | +// pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart:44:7: Error: The getter 'isEven' isn't defined for the class 'num'. |
| 47 | +// Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'. |
| 48 | +// x.isEven; // Error. |
| 49 | +// ^^^^^^ |
| 50 | +// |
| 51 | +import self as self; |
| 52 | +import "dart:core" as core; |
| 53 | + |
| 54 | +static method nullableInt() → core::int? |
| 55 | + return 1; |
| 56 | +static method notEqualNull_assignIfNull() → dynamic { |
| 57 | + has-declared-initializer core::int? x = null; |
| 58 | + if(!((let final core::int? #t1 = x in #t1 == null ?{core::int?} x = self::nullableInt() : #t1{core::int}) == null)) { |
| 59 | + x{core::int}.{core::int::isEven}{core::bool}; |
| 60 | + } |
| 61 | +} |
| 62 | +static method notEqualNullNull_eq() → dynamic { |
| 63 | + has-declared-initializer core::int? x = null; |
| 64 | + if(!((x = self::nullableInt()) == null)) { |
| 65 | + x{core::int}.{core::int::isEven}{core::bool}; |
| 66 | + } |
| 67 | +} |
| 68 | +static method is_eq() → dynamic { |
| 69 | + has-declared-initializer core::int? x = null; |
| 70 | + if((x = self::nullableInt()) is core::int) { |
| 71 | + x{core::int}.{core::int::isEven}{core::bool}; |
| 72 | + } |
| 73 | +} |
| 74 | +static method is_plusEq() → dynamic { |
| 75 | + core::num x = 2; |
| 76 | + if((x = x.{core::num::+}(1){(core::num) → core::num}) is core::int) { |
| 77 | + x{core::int}.{core::int::isEven}{core::bool}; |
| 78 | + } |
| 79 | +} |
| 80 | +static method is_postfix() → dynamic { |
| 81 | + core::num x = 2; |
| 82 | + if((let final core::num #t2 = x in let final core::num #t3 = x = #t2.{core::num::+}(1){(core::num) → core::num} in #t2) is core::int) { |
| 83 | + invalid-expression "pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart:44:7: Error: The getter 'isEven' isn't defined for the class 'num'. |
| 84 | +Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'. |
| 85 | + x.isEven; // Error. |
| 86 | + ^^^^^^" in x{<unresolved>}.isEven; |
| 87 | + } |
| 88 | +} |
| 89 | +static method is_prefix() → dynamic { |
| 90 | + core::num x = 2; |
| 91 | + if((x = x.{core::num::+}(1){(core::num) → core::num}) is core::int) { |
| 92 | + x{core::int}.{core::int::isEven}{core::bool}; |
| 93 | + } |
| 94 | +} |
0 commit comments