Do not run rangeUntil operator tests in old JVM BE #KT-52933
This commit is contained in:
+3
@@ -168,6 +168,9 @@ public class GenerateRangesCodegenTestData {
|
||||
out.println("// IGNORE_BACKEND: JS");
|
||||
}
|
||||
boolean hasRangeUntil = generatedBody.contains("..<");
|
||||
if (hasRangeUntil) {
|
||||
out.println("// DONT_TARGET_EXACT_BACKEND: JVM"); // do not test on old backend new rangeUntil operator
|
||||
}
|
||||
out.println("// Auto-generated by " + GenerateRangesCodegenTestData.class.getName() + ". DO NOT EDIT!");
|
||||
if (hasRangeUntil) {
|
||||
out.println("// !LANGUAGE: +RangeUntilOperator"); // until rangeUntil is stable
|
||||
|
||||
+1
@@ -185,6 +185,7 @@ object GenerateSteppedRangesCodegenTestData {
|
||||
println(KT_34166_HEADER)
|
||||
}
|
||||
if (function == Function.RANGE_UNTIL) { // until 1.8
|
||||
println("// DONT_TARGET_EXACT_BACKEND: JVM")
|
||||
println("// !LANGUAGE: +RangeUntilOperator")
|
||||
println("@file:OptIn(ExperimentalStdlibApi::class)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user