| OLD | NEW |
| (Empty) | |
| 1 // dynamic is not a subtype of dart.core::bool (null_aware.dart:11:2) |
| 2 // dynamic is not a subtype of dart.core::bool (null_aware.dart:13:6) |
| 3 // dynamic is not a subtype of dart.core::bool (null_aware.dart:14:6) |
| 4 // dynamic is not a subtype of dart.core::bool (null_aware.dart:15:2) |
| 5 // dynamic is not a subtype of dart.core::bool (null_aware.dart:15:2) |
| 6 // dynamic is not a subtype of dart.core::bool (null_aware.dart:16:2) |
| 7 // dynamic is not a subtype of dart.core::bool (null_aware.dart:18:27) |
| 8 // dynamic is not a subtype of dart.core::bool (null_aware.dart:19:27) |
| 9 library; |
| 10 import self as self; |
| 11 import "dart:core" as core; |
| 12 |
| 13 class Foo extends core::Object { |
| 14 field core::int field = null; |
| 15 static field core::int staticField = null; |
| 16 constructor •() → void |
| 17 : super core::Object::•() |
| 18 ; |
| 19 } |
| 20 static method main() → dynamic { |
| 21 self::Foo foo = new self::Foo::•(); |
| 22 let final self::Foo #t1 = foo in #t1.==(null) ? null : #t1.{self::Foo::field}
= 5; |
| 23 self::Foo::staticField = 5; |
| 24 let final self::Foo #t2 = foo in #t2.{self::Foo::field}.==(null) ? #t2.{self::
Foo::field} = 5 : null; |
| 25 self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null; |
| 26 let final self::Foo #t3 = foo in #t3.==(null) ? null : #t3.{self::Foo::field}.
==(null) ? #t3.{self::Foo::field} = 5 : null; |
| 27 self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null; |
| 28 core::int intValue = let final core::int #t4 = foo.{self::Foo::field} in #t4.=
=(null) ? 6 : #t4; |
| 29 core::num numValue = let final core::int #t5 = foo.{self::Foo::field} in #t5.=
=(null) ? 4.5 : #t5; |
| 30 } |
| OLD | NEW |