Files
sdk/pkg/front_end/testcases/inference/null_aware_method_invocation.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

17 lines
436 B
Plaintext

library test;
import self as self;
import "dart:core" as core;
class C extends core::Object {
synthetic constructor •() → self::C
: super core::Object::•()
;
method f() → core::int
return null;
}
static method g(self::C c) → dynamic {
dynamic x = let final dynamic #t1 = c in #t1.==(null) ? null : #t1.f();
let final dynamic #t2 = c in #t2.==(null) ? null : #t2.f();
}
static method main() → dynamic {}