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>
14 lines
293 B
Dart
14 lines
293 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart = 2.6
|
|
|
|
test() {
|
|
int x = 3;
|
|
x?.isEven;
|
|
x = null;
|
|
}
|
|
|
|
main() {}
|