9cd13cdaee
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>
11 lines
271 B
Plaintext
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 {}
|