Files
sdk/pkg/front_end/testcases/nnbd/issue42607.dart.weak.expect
T
Johnni Winther 9cd13cdaee [cfe] Add test for issue42607
This verifies that we no longer emit spurious errors/warnings in opted out
libraries when trying to compile with sound null safety.

Closes #42607

Change-Id: I89063003fb5140d9cd0a3ce937017976e2fdd1c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169740
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-10-30 09:58:01 +00:00

11 lines
271 B
Plaintext

library;
import self as self;
import "dart:core" as core;
static method test() → dynamic {
core::int* x = 3;
let final core::int* #t1 = x in #t1.{core::num::==}(null) ?{core::bool*} null : #t1.{core::int::isEven};
x = null;
}
static method main() → dynamic {}