Update tests after switching to LV 2.0

Related to KT-59171
This commit is contained in:
Mikhail Glukhikh
2023-06-21 17:11:59 +02:00
committed by Space Team
parent 5fb38008b7
commit 2a8b655294
218 changed files with 531 additions and 1187 deletions
@@ -1,7 +1 @@
compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.kt:4:9: warning: [UNUSED_VARIABLE] Variable 'x' is never used
val x = 1?.dec()
^
compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.kt:4:14: warning: [UNNECESSARY_SAFE_CALL] Unnecessary safe call on a non-null receiver of type Int
val x = 1?.dec()
^
OK
@@ -1,4 +1,6 @@
$TESTDATA_DIR$/overridingXx.kt
-d
$TEMP_DIR$
-language-version
1.9
-XXLanguage\:+RangeUntilOperator
@@ -1,10 +1,4 @@
compiler/testData/cli/jvm/readingConfigFromEnvironment/simple.kt:2:15: error: [NONE_APPLICABLE] None of the following functions can be called with the arguments supplied:
public final operator fun plus(other: Byte): Int defined in kotlin.Int
public final operator fun plus(other: Double): Double defined in kotlin.Int
public final operator fun plus(other: Float): Float defined in kotlin.Int
public final operator fun plus(other: Int): Int defined in kotlin.Int
public final operator fun plus(other: Long): Long defined in kotlin.Int
public final operator fun plus(other: Short): Int defined in kotlin.Int
compiler/testData/cli/jvm/readingConfigFromEnvironment/simple.kt:2:15: error: [NONE_APPLICABLE] None of the following functions are applicable: [@IntrinsicConstEvaluation() fun plus(other: Int): Int, @IntrinsicConstEvaluation() fun plus(other: Byte): Int, @IntrinsicConstEvaluation() fun plus(other: Double): Double, ...]
val x = 1 + ""
^
COMPILATION_ERROR