Files
sdk/pkg/language_versioning_2.7_test/test/lib_im2.7_test.dart
T
Lasse Reichstein Holst Nielsen 8c70a6004d Add tests for inconsistent language markers in part files.
Change-Id: Ife3f8145d146b3f406c1fdcaf77d91efda7e79d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154462
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2020-07-24 12:58:35 +00:00

26 lines
987 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.
// Implicit language version 2.7 from configuration.
part "src/part_of_im2.7_v_im2.7.dart";
// Specification requires the part fsrc/ile to have
// the same explicit langauge version marker
// as the including library,
// not just the same languge version.
part "src/part_of_im2.7_v_ex2.7.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";
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [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);
}