1de6bc74d2
This change reverts https://dart-review.googlesource.com/c/sdk/+/341020. The reverted CL removed tests from `tests/language` that contained legacy code (code with a language version less than 2.12). The primary purpose of the removal was to unblock removal of legacy support from the analyzer. It seemed safe to do because legacy code isn't supported anymore, and no legacy code exists in google3 anymore. However, several of those tests exercised important "weak mode" runtime semantics of the web and VM platforms. See discussion at https://dart-review.googlesource.com/c/sdk/+/341020/comments/bce31aa1_f5392ce1 for details. This CL restores the deleted tests. Fortunately, since all the restored tests are annotated with `Requirements=nnbd-weak`, they will be skipped on the analyzer (thanks to https://dart-review.googlesource.com/c/sdk/+/342080), so restoring them no longer gets in the way of removing legacy support from the analyzer. Change-Id: Ib828be76f5c7eaeecaad0b7e7f7b0e3ff2f4bdb2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342090 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
13 lines
421 B
Dart
13 lines
421 B
Dart
// Copyright (c) 2023, 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.
|
|
|
|
// Non-null safe library allowing testing of mixed-mode behaviors in
|
|
// `empty_switch_expression_weak_test.dart`.
|
|
|
|
// @dart=2.9
|
|
|
|
import 'empty_switch_expression_weak_test.dart';
|
|
|
|
A nullOfTypeA() => null;
|