Upgrade pkg/language_versioning_2_7_test to 2.12/2.13.

This package tests the language versioning infrastructure, in
particular how it interacts with imports, exports, and part
files. With the removal of legacy (pre-2.12) support from Dart, we
need the tests in this package to use newer language versions.

Change-Id: I415307a8e644c756da649d7d51da860b5b37de7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341022
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry
2023-12-12 17:45:13 +00:00
committed by Commit Queue
parent f095557189
commit 77a4022f9f
19 changed files with 77 additions and 77 deletions
@@ -5,6 +5,6 @@ analyzer:
illegal_language_version_override: ignore
exclude:
# These files have intentional errors.
- test/lib_ex2.7_test.dart
- test/lib_ex2.8_test.dart
- test/lib_im2.7_test.dart
- test/lib_ex2.12_test.dart
- test/lib_ex2.13_test.dart
- test/lib_im2.12_test.dart
@@ -1,4 +1,4 @@
name: language_versioning_2_7_test
name: language_versioning_2_12_test
version: 1.0.0
description: >
Tests of language versioning. Stored as a package in order to have its own
@@ -8,7 +8,7 @@ description: >
publish_to: none
environment:
sdk: '>=2.7.0 <3.0.0'
sdk: '>=2.12.0 <3.0.0'
dev_dependencies:
lints: any
@@ -3,24 +3,24 @@
// governed by a BSD-style license that can be found in the LICENSE file.
// Explicit version.
// @dart=2.7
// @dart=2.12
part "src/part_of_ex2.7_v_ex2.7.dart";
part "src/part_of_ex2.12_v_ex2.12.dart";
// Specification requires the part file to have
// the same explicit language version marker
// as the including library,
// not just the same language version.
part "src/part_of_ex2.7_v_im2.7.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_ex2.12_v_im2.12.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
part "src/part_of_ex2.7_v_ex2.8.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_ex2.12_v_ex2.13.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
main() {
print(x27x27);
print(x212x212);
}
@@ -3,20 +3,20 @@
// governed by a BSD-style license that can be found in the LICENSE file.
// Explicit version.
// @dart=2.8
// @dart=2.13
part "src/part_of_ex2.8_v_ex2.8.dart";
part "src/part_of_ex2.13_v_ex2.13.dart";
part "src/part_of_ex2.8_v_ex2.7.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_ex2.13_v_ex2.12.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
part "src/part_of_ex2.8_v_im2.7.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_ex2.13_v_im2.12.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
void main() {
print(x28x28);
print(x213x213);
}
@@ -2,24 +2,24 @@
// 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.
// Implicit language version 2.7 from configuration.
// Implicit language version 2.12 from configuration.
part "src/part_of_im2.7_v_im2.7.dart";
part "src/part_of_im2.12_v_im2.12.dart";
// Specification requires the part fsrc/ile to have
// the same explicit language version marker
// as the including library,
// not just the same language version.
part "src/part_of_im2.7_v_ex2.7.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_im2.12_v_ex2.12.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
part "src/part_of_im2.7_v_ex2.8.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
part "src/part_of_im2.12_v_ex2.13.dart";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE
// [cfe] The language version override has to be the same in the library and its part(s).
void main() {
print(i27i27);
print(i212i212);
}
@@ -2,8 +2,8 @@
// 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.7
// @dart=2.12
part of "../lib_ex2.8_test.dart";
part of "../lib_ex2.12_test.dart";
var x28x27 = 0;
var x212x212 = 0;
@@ -2,8 +2,8 @@
// 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.7
// @dart=2.13
part of "../lib_ex2.7_test.dart";
part of "../lib_ex2.12_test.dart";
var x27x27 = 0;
var v212x213 = 0;
@@ -2,8 +2,8 @@
// 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.
// Implicit language version 2.7 from configuration.
// Implicit language version 2.12 from configuration.
part of "../lib_ex2.7_test.dart";
part of "../lib_ex2.12_test.dart";
var x27i27 = 0;
var x212i212 = 0;
@@ -2,8 +2,8 @@
// 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.8
// @dart=2.12
part of "../lib_ex2.7_test.dart";
part of "../lib_ex2.13_test.dart";
var v27x28 = 0;
var x213x212 = 0;
@@ -2,8 +2,8 @@
// 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.8
// @dart=2.13
part of "../lib_ex2.8_test.dart";
part of "../lib_ex2.13_test.dart";
var x28x28 = 0;
var x213x213 = 0;
@@ -0,0 +1,9 @@
// 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.
// Implicit language version 2.12 from configuration.
part of "../lib_ex2.13_test.dart";
var x213i212 = 0;
@@ -0,0 +1,9 @@
// 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.12
part of "../lib_im2.12_test.dart";
var i212x212 = 0;
@@ -0,0 +1,9 @@
// 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.13
part of "../lib_im2.12_test.dart";
var i212x213 = 0;
@@ -0,0 +1,9 @@
// 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.
// Implicit language version 2.12 from configuration.
part of "../lib_im2.12_test.dart";
var i212i212 = 0;
@@ -1,9 +0,0 @@
// 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.
// Implicit language version 2.7 from configuration.
part of "../lib_ex2.8_test.dart";
var x28i27 = 0;
@@ -1,9 +0,0 @@
// 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.7
part of "../lib_im2.7_test.dart";
var i27x27 = 0;
@@ -1,9 +0,0 @@
// 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.8
part of "../lib_im2.7_test.dart";
var i27x28 = 0;
@@ -1,9 +0,0 @@
// 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.
// Implicit language version 2.7 from configuration.
part of "../lib_im2.7_test.dart";
var i27i27 = 0;