Files
sdk/pkg/front_end/testcases/nnbd/issue42607.dart
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

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() {}