Files
sdk/pkg/front_end/testcases/null_aware.dart.legacy.expect
T
Peter von der Ahé 573a7c543f Rename strongMode to legacyMode in test suite
Change-Id: Id02e72dac031224c1c37cdde5a20fb19c0ebf6b5
Reviewed-on: https://dart-review.googlesource.com/c/84404
Auto-Submit: Peter von der Ahé <ahe@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-11-14 09:32:15 +00:00

23 lines
916 B
Plaintext

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;
synthetic constructor •() → self::Foo
: super core::Object::•()
;
}
static method main() → dynamic {
self::Foo foo = new self::Foo::•();
let final dynamic #t1 = foo in #t1.==(null) ? null : #t1.field = 5;
self::Foo::staticField = 5;
let final dynamic #t2 = foo in #t2.field.==(null) ? #t2.field = 5 : null;
self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
let final dynamic #t3 = foo in #t3.==(null) ? null : #t3.field.==(null) ? #t3.field = 5 : null;
self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
core::int intValue = let final dynamic #t4 = foo.field in #t4.==(null) ? 6 : #t4;
core::num numValue = let final dynamic #t5 = foo.field in #t5.==(null) ? 4.5 : #t5;
}