| Index: testcases/strong-mode/null_aware.baseline.txt
|
| diff --git a/testcases/strong-mode/null_aware.baseline.txt b/testcases/strong-mode/null_aware.baseline.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ed5679bb3c7397e2c32b0519f85cfdc659a807b6
|
| --- /dev/null
|
| +++ b/testcases/strong-mode/null_aware.baseline.txt
|
| @@ -0,0 +1,30 @@
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:11:2)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:13:6)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:14:6)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:15:2)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:15:2)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:16:2)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:18:27)
|
| +// dynamic is not a subtype of dart.core::bool (null_aware.dart:19:27)
|
| +library;
|
| +import self as self;
|
| +import "dart:core" as core;
|
| +
|
| +class Foo extends core::Object {
|
| + field core::int field = null;
|
| + static field core::int staticField = null;
|
| + constructor •() → void
|
| + : super core::Object::•()
|
| + ;
|
| +}
|
| +static method main() → dynamic {
|
| + self::Foo foo = new self::Foo::•();
|
| + let final self::Foo #t1 = foo in #t1.==(null) ? null : #t1.{self::Foo::field} = 5;
|
| + self::Foo::staticField = 5;
|
| + let final self::Foo #t2 = foo in #t2.{self::Foo::field}.==(null) ? #t2.{self::Foo::field} = 5 : null;
|
| + self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
|
| + let final self::Foo #t3 = foo in #t3.==(null) ? null : #t3.{self::Foo::field}.==(null) ? #t3.{self::Foo::field} = 5 : null;
|
| + self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
|
| + core::int intValue = let final core::int #t4 = foo.{self::Foo::field} in #t4.==(null) ? 6 : #t4;
|
| + core::num numValue = let final core::int #t5 = foo.{self::Foo::field} in #t5.==(null) ? 4.5 : #t5;
|
| +}
|
|
|