[Test] Update CLI tests according to new default language version
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ val kotlinVersion by extra(
|
|||||||
} ?: buildNumber
|
} ?: buildNumber
|
||||||
)
|
)
|
||||||
|
|
||||||
val kotlinLanguageVersion by extra("1.4")
|
val kotlinLanguageVersion by extra("1.5")
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "org.jetbrains.kotlin"
|
group = "org.jetbrains.kotlin"
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
error: IR backend cannot be used with language or API version below 1.4
|
error: IR backend cannot be used with language or API version below 1.4
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
error: IR backend cannot be used with language or API version below 1.4
|
error: IR backend cannot be used with language or API version below 1.4
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/js/languageVersion.kt:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
compiler/testData/cli/js/languageVersion.kt:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
||||||
true -> break
|
true -> break
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
$TESTDATA_DIR$/simple.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-Xabi-stability=unstable
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
error: -Xabi-stability=unstable is not supported in the old JVM backend
|
|
||||||
COMPILATION_ERROR
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
error: language version 1.1 is no longer supported; please, use version 1.2 or greater.
|
error: language version 1.1 is no longer supported; please, use version 1.3 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/apiVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.2
|
1.3
|
||||||
|
|||||||
+94
-7
@@ -1,8 +1,95 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:11:20: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:12:9: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:13: warning: parameter 'p01' is never used
|
||||||
bar(::foo)
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:21: warning: parameter 'p02' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:29: warning: parameter 'p03' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:37: warning: parameter 'p04' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:45: warning: parameter 'p05' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:53: warning: parameter 'p06' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:61: warning: parameter 'p07' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:69: warning: parameter 'p08' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:77: warning: parameter 'p09' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:5: warning: parameter 'p10' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:13: warning: parameter 'p11' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:21: warning: parameter 'p12' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:29: warning: parameter 'p13' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:37: warning: parameter 'p14' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:45: warning: parameter 'p15' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:53: warning: parameter 'p16' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:61: warning: parameter 'p17' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:69: warning: parameter 'p18' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:77: warning: parameter 'p19' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:5: warning: parameter 'p20' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:13: warning: parameter 'p21' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:21: warning: parameter 'p22' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:29: warning: parameter 'p23' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:37: warning: parameter 'p24' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:45: warning: parameter 'p25' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:53: warning: parameter 'p26' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:61: warning: parameter 'p27' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:69: warning: parameter 'p28' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:77: warning: parameter 'p29' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:9:9: warning: parameter 'x' is never used
|
||||||
|
fun bar(x: Any) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
OK
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/apiVersionAndSinceNewerKotlin.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.2
|
1.3
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@SinceKotlin("1.2")
|
@SinceKotlin("1.3")
|
||||||
fun old() {}
|
fun old() {}
|
||||||
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.4")
|
||||||
fun new() {}
|
fun new() {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:1: warning: the version is greater than the specified API version 1.2
|
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:1: warning: the version is greater than the specified API version 1.3
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.4")
|
||||||
^
|
^
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
error: -api-version (1.4) cannot be greater than -language-version (1.3)
|
error: -api-version (1.4) cannot be greater than -language-version (1.3)
|
||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
error: unknown API version: 239.42
|
error: unknown API version: 239.42
|
||||||
Supported API versions: 1.2 (DEPRECATED), 1.3, 1.4, 1.5 (EXPERIMENTAL), 1.6 (EXPERIMENTAL)
|
Supported API versions: 1.3 (DEPRECATED), 1.4, 1.5, 1.6 (EXPERIMENTAL)
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
$TESTDATA_DIR$/apiVersion.kt -d $TEMP_DIR$ -api-version 1.2 -language-version 1.3
|
$TESTDATA_DIR$/apiVersion.kt -d $TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ $TESTDATA_DIR$/apiVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.2
|
|
||||||
-language-version
|
|
||||||
1.3
|
1.3
|
||||||
|
-language-version
|
||||||
|
1.4
|
||||||
|
|||||||
+94
-7
@@ -1,8 +1,95 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:11:20: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:12:9: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:13: warning: parameter 'p01' is never used
|
||||||
bar(::foo)
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:21: warning: parameter 'p02' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:29: warning: parameter 'p03' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:37: warning: parameter 'p04' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:45: warning: parameter 'p05' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:53: warning: parameter 'p06' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:61: warning: parameter 'p07' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:69: warning: parameter 'p08' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:77: warning: parameter 'p09' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:5: warning: parameter 'p10' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:13: warning: parameter 'p11' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:21: warning: parameter 'p12' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:29: warning: parameter 'p13' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:37: warning: parameter 'p14' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:45: warning: parameter 'p15' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:53: warning: parameter 'p16' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:61: warning: parameter 'p17' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:69: warning: parameter 'p18' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:77: warning: parameter 'p19' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:5: warning: parameter 'p20' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:13: warning: parameter 'p21' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:21: warning: parameter 'p22' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:29: warning: parameter 'p23' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:37: warning: parameter 'p24' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:45: warning: parameter 'p25' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:53: warning: parameter 'p26' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:61: warning: parameter 'p27' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:69: warning: parameter 'p28' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:77: warning: parameter 'p29' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:9:9: warning: parameter 'x' is never used
|
||||||
|
fun bar(x: Any) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
OK
|
||||||
|
|||||||
@@ -1,8 +1,95 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:11:20: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:12:9: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:13: warning: parameter 'p01' is never used
|
||||||
bar(::foo)
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:21: warning: parameter 'p02' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:29: warning: parameter 'p03' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:37: warning: parameter 'p04' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:45: warning: parameter 'p05' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:53: warning: parameter 'p06' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:61: warning: parameter 'p07' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:69: warning: parameter 'p08' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:77: warning: parameter 'p09' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:5: warning: parameter 'p10' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:13: warning: parameter 'p11' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:21: warning: parameter 'p12' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:29: warning: parameter 'p13' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:37: warning: parameter 'p14' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:45: warning: parameter 'p15' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:53: warning: parameter 'p16' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:61: warning: parameter 'p17' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:69: warning: parameter 'p18' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:77: warning: parameter 'p19' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:5: warning: parameter 'p20' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:13: warning: parameter 'p21' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:21: warning: parameter 'p22' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:29: warning: parameter 'p23' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:37: warning: parameter 'p24' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:45: warning: parameter 'p25' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:53: warning: parameter 'p26' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:61: warning: parameter 'p27' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:69: warning: parameter 'p28' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:77: warning: parameter 'p29' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:9:9: warning: parameter 'x' is never used
|
||||||
|
fun bar(x: Any) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
OK
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
error: API version 1.1 is no longer supported; please, use version 1.2 or greater.
|
error: API version 1.1 is no longer supported; please, use version 1.3 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
-X'single \" quote " escaped \' sequence \\'
|
-X'single \" quote " escaped \' sequence \\'
|
||||||
$TESTDATA_DIR$/apiVersion.kt
|
$TESTDATA_DIR$/apiVersion.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$ -api-version 1.2 -language-version 1.3
|
$TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
||||||
|
|||||||
+94
-7
@@ -1,10 +1,97 @@
|
|||||||
warning: flag is not supported by this version of the compiler: -Xdouble ' quote ' escaped " sequence /
|
warning: flag is not supported by this version of the compiler: -Xdouble ' quote ' escaped " sequence /
|
||||||
warning: flag is not supported by this version of the compiler: -Xsingle " quote " escaped ' sequence /
|
warning: flag is not supported by this version of the compiler: -Xsingle " quote " escaped ' sequence /
|
||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:11:20: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:12:9: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:13: warning: parameter 'p01' is never used
|
||||||
bar(::foo)
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:21: warning: parameter 'p02' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:29: warning: parameter 'p03' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:37: warning: parameter 'p04' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:45: warning: parameter 'p05' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:53: warning: parameter 'p06' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:61: warning: parameter 'p07' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:69: warning: parameter 'p08' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:77: warning: parameter 'p09' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:5: warning: parameter 'p10' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:13: warning: parameter 'p11' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:21: warning: parameter 'p12' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:29: warning: parameter 'p13' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:37: warning: parameter 'p14' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:45: warning: parameter 'p15' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:53: warning: parameter 'p16' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:61: warning: parameter 'p17' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:69: warning: parameter 'p18' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:77: warning: parameter 'p19' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:5: warning: parameter 'p20' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:13: warning: parameter 'p21' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:21: warning: parameter 'p22' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:29: warning: parameter 'p23' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:37: warning: parameter 'p24' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:45: warning: parameter 'p25' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:53: warning: parameter 'p26' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:61: warning: parameter 'p27' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:69: warning: parameter 'p28' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:77: warning: parameter 'p29' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:9:9: warning: parameter 'x' is never used
|
||||||
|
fun bar(x: Any) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
OK
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/classAndFileClassClash.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: package-fragment test, Foo
|
compiler/testData/cli/jvm/classAndFileClassClash.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||||
@file:JvmName("Foo")
|
@file:JvmName("Foo")
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/classAndFileClassClash.kt:6:1: error: duplicate JVM class name 'test/Foo' generated from: package-fragment test, Foo
|
compiler/testData/cli/jvm/classAndFileClassClash.kt:6:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||||
class Foo {}
|
class Foo {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/classAndOtherFileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, package-fragment test
|
compiler/testData/cli/jvm/classAndOtherFileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||||
@file:JvmName("Foo")
|
@file:JvmName("Foo")
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/classAndOtherFileClassClash2.kt:3:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, package-fragment test
|
compiler/testData/cli/jvm/classAndOtherFileClassClash2.kt:3:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||||
class Foo
|
class Foo
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/classAndPartClash.kt:1:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: package-fragment test, ClassAndPartClashKt
|
compiler/testData/cli/jvm/classAndPartClash.kt:1:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: ClassAndPartClashKt, ClassAndPartClashKt
|
||||||
package test
|
package test
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/classAndPartClash.kt:5:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: package-fragment test, ClassAndPartClashKt
|
compiler/testData/cli/jvm/classAndPartClash.kt:5:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: ClassAndPartClashKt, ClassAndPartClashKt
|
||||||
class ClassAndPartClashKt
|
class ClassAndPartClashKt
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
$TESTDATA_DIR$/classAndTraitClash.kt
|
$TESTDATA_DIR$/classAndTraitClash.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
|
-Xuse-old-backend
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.2
|
1.3
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
error: API version 1.1 is no longer supported; please, use version 1.2 or greater.
|
error: language version 1.2 is no longer supported; please, use version 1.3 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.2
|
1.3
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
compiler/testData/cli/jvm/fileClassAndMultifileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
|
compiler/testData/cli/jvm/fileClassAndMultifileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: Util, Util
|
||||||
@file:JvmName("Util")
|
@file:JvmName("Util")
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/fileClassAndMultifileClassClash2.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
|
COMPILATION_ERROR
|
||||||
@file:JvmName("Util")
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/fileClassClashMultipleFiles1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
|
compiler/testData/cli/jvm/fileClassClashMultipleFiles1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: Util, Util
|
||||||
@file:JvmName("Util")
|
@file:JvmName("Util")
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/fileClassClashMultipleFiles2.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
|
compiler/testData/cli/jvm/fileClassClashMultipleFiles2.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: Util, Util
|
||||||
@file:JvmName("Util")
|
@file:JvmName("Util")
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
$TESTDATA_DIR$/internalArgDisableLanguageFeature.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-XXLanguage\:-SoundSmartCastsAfterTry
|
-XXLanguage\:-SealedInterfaces
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
sealed interface A
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
warning: ATTENTION!
|
warning: ATTENTION!
|
||||||
This build uses unsafe internal compiler arguments:
|
This build uses unsafe internal compiler arguments:
|
||||||
|
|
||||||
-XXLanguage:-SoundSmartCastsAfterTry
|
-XXLanguage:-SealedInterfaces
|
||||||
|
|
||||||
This mode is not recommended for production use,
|
This mode is not recommended for production use,
|
||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:2:25: warning: variable 'some' initializer is redundant
|
compiler/testData/cli/jvm/internalArgDisableLanguageFeature.kt:1:1: error: modifier 'sealed' is not applicable to 'interface'
|
||||||
var some: String? = null
|
sealed interface A
|
||||||
^
|
^
|
||||||
OK
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/variableInWhenSubject.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.2
|
1.3
|
||||||
-XXLanguage\:+VariableDeclarationInWhenSubject
|
-XXLanguage\:+VariableDeclarationInWhenSubject
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-api-version
|
-api-version
|
||||||
1.2
|
1.3
|
||||||
-Xuse-ir
|
-Xuse-ir
|
||||||
|
|||||||
+1
-2
@@ -1,3 +1,2 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
warning: IR backend does not support language or API version lower than 1.3. This can lead to unexpected behavior or compilation failures
|
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.2
|
1.3
|
||||||
-Xuse-ir
|
-Xuse-ir
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
warning: IR backend does not support language or API version lower than 1.3. This can lead to unexpected behavior or compilation failures
|
|
||||||
OK
|
OK
|
||||||
|
|||||||
+1
@@ -1 +1,2 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
warning: language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
|
|
||||||
OK
|
OK
|
||||||
|
|||||||
-1
@@ -7,6 +7,5 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
|
|
||||||
info: using preview Java language features
|
info: using preview Java language features
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
|
|
||||||
compiler/testData/cli/jvm/jvmRecord.kt:1:1: error: using @JvmRecord is only allowed with -jvm-target 15 and -Xjvm-enable-preview flag enabled
|
compiler/testData/cli/jvm/jvmRecord.kt:1:1: error: using @JvmRecord is only allowed with -jvm-target 15 and -Xjvm-enable-preview flag enabled
|
||||||
@JvmRecord
|
@JvmRecord
|
||||||
^
|
^
|
||||||
|
|||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
$TESTDATA_DIR$/kt19628_12.kt
|
|
||||||
-language-version
|
|
||||||
1.2
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-10
@@ -1,10 +0,0 @@
|
|||||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter
|
|
||||||
|
|
||||||
@Suppress("ANNOTATION_TARGETS_NON_EXISTENT_ACCESSOR")
|
|
||||||
class Data(
|
|
||||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
|
||||||
var value: String?
|
|
||||||
) {
|
|
||||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
|
||||||
private val b: String = ""
|
|
||||||
}
|
|
||||||
-2
@@ -1,2 +0,0 @@
|
|||||||
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
|
||||||
OK
|
|
||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: unresolved reference: CollapsedStringAdapter
|
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: unresolved reference: CollapsedStringAdapter
|
||||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||||
^
|
^
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/languageVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+1
-4
@@ -1,4 +1 @@
|
|||||||
compiler/testData/cli/jvm/languageVersion.kt:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
OK
|
||||||
true -> break
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
error: unknown language version: 239.42
|
error: unknown language version: 239.42
|
||||||
Supported language versions: 1.2 (DEPRECATED), 1.3, 1.4, 1.5 (EXPERIMENTAL), 1.6 (EXPERIMENTAL)
|
Supported language versions: 1.3 (DEPRECATED), 1.4, 1.5, 1.6 (EXPERIMENTAL)
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
error: language version 1.1 is no longer supported; please, use version 1.2 or greater.
|
error: language version 1.1 is no longer supported; please, use version 1.3 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
$TEMP_DIR$ -api-version 1.2 -language-version 1.3
|
$TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
||||||
|
|||||||
+94
-7
@@ -1,8 +1,95 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:11:20: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:12:9: error: the feature "function types with big arity" is only available since API version 1.3
|
compiler/testData/cli/jvm/apiVersion.kt:4:13: warning: parameter 'p01' is never used
|
||||||
bar(::foo)
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:21: warning: parameter 'p02' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:29: warning: parameter 'p03' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:37: warning: parameter 'p04' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:45: warning: parameter 'p05' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:53: warning: parameter 'p06' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:61: warning: parameter 'p07' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:69: warning: parameter 'p08' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:4:77: warning: parameter 'p09' is never used
|
||||||
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:5: warning: parameter 'p10' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:13: warning: parameter 'p11' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:21: warning: parameter 'p12' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:29: warning: parameter 'p13' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:37: warning: parameter 'p14' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:45: warning: parameter 'p15' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:53: warning: parameter 'p16' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:61: warning: parameter 'p17' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:69: warning: parameter 'p18' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:5:77: warning: parameter 'p19' is never used
|
||||||
|
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:5: warning: parameter 'p20' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:13: warning: parameter 'p21' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:21: warning: parameter 'p22' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:29: warning: parameter 'p23' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:37: warning: parameter 'p24' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:45: warning: parameter 'p25' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:53: warning: parameter 'p26' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:61: warning: parameter 'p27' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:69: warning: parameter 'p28' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:6:77: warning: parameter 'p29' is never used
|
||||||
|
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/apiVersion.kt:9:9: warning: parameter 'x' is never used
|
||||||
|
fun bar(x: Any) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
OK
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/progressive
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+3
-9
@@ -1,13 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: warning: a function is marked as tail-recursive but no tail calls are found
|
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: error: tailrec is not allowed on open members
|
||||||
tailrec open fun foo(x: Int) {}
|
tailrec open fun foo(x: Int) {}
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: warning: tailrec on open members is deprecated
|
compiler/testData/cli/jvm/progressive/typeParametersInAnonymousObjects.kt:2:19: error: type parameters are not allowed for objects
|
||||||
tailrec open fun foo(x: Int) {}
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/progressive/typeParametersInAnonymousObjects.kt:2:9: warning: variable 'x' is never used
|
|
||||||
val x = object<T> { }
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/progressive/typeParametersInAnonymousObjects.kt:2:19: warning: type parameters for anonymous objects are deprecated
|
|
||||||
val x = object<T> { }
|
val x = object<T> { }
|
||||||
^
|
^
|
||||||
OK
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
$TESTDATA_DIR$/releaseCoroutinesApiVersion1.2.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-language-version
|
|
||||||
1.3
|
|
||||||
-api-version
|
|
||||||
1.2
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
suspend fun dummy() {}
|
|
||||||
|
|
||||||
val c: suspend () -> Unit = {}
|
|
||||||
|
|
||||||
fun builder(c: suspend () -> Unit) {}
|
|
||||||
|
|
||||||
val d = suspend {}
|
|
||||||
|
|
||||||
suspend fun check() {
|
|
||||||
dummy()
|
|
||||||
c()
|
|
||||||
builder {}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:1:1: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
suspend fun dummy() {}
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:3:8: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
val c: suspend () -> Unit = {}
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:5:16: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
fun builder(c: suspend () -> Unit) {}
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:7:9: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
val d = suspend {}
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:9:1: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
suspend fun check() {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:12:5: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
|
||||||
builder {}
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
compiler/testData/cli/jvm/sanitized-name.clash.kt:1:1: error: duplicate JVM class name 'Sanitized_name_clashKt' generated from: package-fragment, Sanitized_name_clashKt
|
compiler/testData/cli/jvm/sanitized-name.clash.kt:1:1: error: duplicate JVM class name 'Sanitized_name_clashKt' generated from: Sanitized_name_clashKt, Sanitized_name_clashKt
|
||||||
class SanitizedNameClash
|
class SanitizedNameClash
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/sanitized-name.clash.kt:3:1: error: duplicate JVM class name 'Sanitized_name_clashKt' generated from: package-fragment, Sanitized_name_clashKt
|
compiler/testData/cli/jvm/sanitized-name.clash.kt:3:1: error: duplicate JVM class name 'Sanitized_name_clashKt' generated from: Sanitized_name_clashKt, Sanitized_name_clashKt
|
||||||
class Sanitized_name_clashKt
|
class Sanitized_name_clashKt
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+9
-14
@@ -14,33 +14,28 @@ compiler/testData/cli/jvm/signatureClash.kt:9:5: error: platform declaration cla
|
|||||||
val a: Int = 1
|
val a: Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:12:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
compiler/testData/cli/jvm/signatureClash.kt:12:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
||||||
fun <get-b>(): Int defined in root package in file signatureClash.kt
|
fun <get-b>(): Int defined in root package
|
||||||
fun getB(): Int defined in root package in file signatureClash.kt
|
fun getB(): Int defined in root package
|
||||||
fun getB(): Int = 1
|
fun getB(): Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:13:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
compiler/testData/cli/jvm/signatureClash.kt:13:1: error: platform declaration clash: The following declarations have the same JVM signature (getB()I):
|
||||||
fun <get-b>(): Int defined in root package in file signatureClash.kt
|
fun <get-b>(): Int defined in root package
|
||||||
fun getB(): Int defined in root package in file signatureClash.kt
|
fun getB(): Int defined in root package
|
||||||
val b: Int = 1
|
val b: Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:19:7: error: platform declaration clash: The following declarations have the same JVM signature (getTr()I):
|
compiler/testData/cli/jvm/signatureClash.kt:20:5: error: accidental override: The following declarations have the same JVM signature (getTr()I):
|
||||||
fun <get-tr>(): Int defined in SubTr
|
fun <get-tr>(): Int defined in SubTr
|
||||||
fun getTr(): Int defined in Tr
|
fun getTr(): Int defined in SubTr
|
||||||
class SubTr : Tr {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:20:5: error: platform declaration clash: The following declarations have the same JVM signature (getTr()I):
|
|
||||||
fun <get-tr>(): Int defined in SubTr
|
|
||||||
fun getTr(): Int defined in Tr
|
|
||||||
val tr = 1
|
val tr = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:24:7: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
compiler/testData/cli/jvm/signatureClash.kt:24:7: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
||||||
|
fun `access$f`(`$this`: C): Unit defined in C
|
||||||
fun `access$f`(c: C): Unit defined in C
|
fun `access$f`(c: C): Unit defined in C
|
||||||
fun f(): Unit defined in C
|
|
||||||
class C {
|
class C {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/signatureClash.kt:26:5: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
compiler/testData/cli/jvm/signatureClash.kt:26:5: error: platform declaration clash: The following declarations have the same JVM signature (access$f(LC;)V):
|
||||||
|
fun `access$f`(`$this`: C): Unit defined in C
|
||||||
fun `access$f`(c: C): Unit defined in C
|
fun `access$f`(c: C): Unit defined in C
|
||||||
fun f(): Unit defined in C
|
|
||||||
fun `access$f`(c: C) {}
|
fun `access$f`(c: C) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
$TESTDATA_DIR$/standaloneSamConversionsAreEnabledWithNewInference.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-Xnew-inference
|
|
||||||
-XXLanguage\:-SamConversionPerArgument
|
|
||||||
Vendored
-16
@@ -1,16 +0,0 @@
|
|||||||
warning: ATTENTION!
|
|
||||||
This build uses unsafe internal compiler arguments:
|
|
||||||
|
|
||||||
-XXLanguage:-SamConversionPerArgument
|
|
||||||
|
|
||||||
This mode is not recommended for production use,
|
|
||||||
as no stability/compatibility guarantees are given on
|
|
||||||
compiler or generated code. Use it at your own risk!
|
|
||||||
|
|
||||||
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:9:25: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
|
||||||
ForceSam.compare(r, {})
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:10:22: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
|
||||||
ForceSam.compare({}, r)
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:9:25: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:9:25: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
||||||
ForceSam.compare(r, {})
|
ForceSam.compare(r, {})
|
||||||
^
|
^
|
||||||
|
|||||||
+15
-45
@@ -1,71 +1,41 @@
|
|||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
||||||
fun <get-foo>(): Int defined in A
|
|
||||||
fun `access$getFoo$p`(a: A): Int defined in A
|
|
||||||
class A {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A
|
|
||||||
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
||||||
class A {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
||||||
fun <get-foo>(): Int defined in A.Companion
|
fun `access$getFoo$cp`(): Int defined in A
|
||||||
fun `access$getFoo$cp`(): Int defined in A
|
fun `access$getFoo$cp`(): Int defined in A
|
||||||
class A {
|
class A {
|
||||||
^
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
||||||
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
||||||
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
||||||
|
class A {
|
||||||
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
fun `access$setFoo$cp`(`<set-?>`: Int): Unit defined in A
|
||||||
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
||||||
class A {
|
class A {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getBar$lp(LA;)I):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
||||||
fun <get-bar>(): Int defined in A
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
||||||
fun `access$getBar$lp`(a: A): Int defined in A
|
fun `access$getFoo$p`(a: A): Int defined in A
|
||||||
class A {
|
class A {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:5:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:5:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
||||||
fun <get-foo>(): Int defined in A
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
||||||
fun `access$getFoo$p`(a: A): Int defined in A
|
fun `access$getFoo$p`(a: A): Int defined in A
|
||||||
fun `access$getFoo$p`(a: A): Int = 1
|
fun `access$getFoo$p`(a: A): Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
||||||
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
||||||
fun `access$setFoo$p`(a: A, d: Int) {}
|
fun `access$setFoo$p`(a: A, d: Int) {}
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
||||||
fun <get-foo>(): Int defined in A.Companion
|
fun `access$getFoo$cp`(): Int defined in A
|
||||||
fun `access$getFoo$cp`(): Int defined in A
|
fun `access$getFoo$cp`(): Int defined in A
|
||||||
fun `access$getFoo$cp`(): Int = 1
|
fun `access$getFoo$cp`(): Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:10:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:10:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
fun `access$setFoo$cp`(`<set-?>`: Int): Unit defined in A
|
||||||
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
||||||
fun `access$setFoo$cp`(d: Int) {}
|
fun `access$setFoo$cp`(d: Int) {}
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:16:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getBar$lp(LA;)I):
|
COMPILATION_ERROR
|
||||||
fun <get-bar>(): Int defined in A
|
|
||||||
fun `access$getBar$lp`(a: A): Int defined in A
|
|
||||||
fun `access$getBar$lp`(a: A): Int = 7
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:18:15: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA$Companion;)I):
|
|
||||||
fun <get-foo>(): Int defined in A.Companion
|
|
||||||
fun `access$getFoo$p`(p: A.Companion): Int defined in A.Companion
|
|
||||||
companion object {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:18:15: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA$Companion;I)V):
|
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
||||||
fun `access$setFoo$p`(p: A.Companion, d: Int): Unit defined in A.Companion
|
|
||||||
companion object {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:30:9: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA$Companion;)I):
|
|
||||||
fun <get-foo>(): Int defined in A.Companion
|
|
||||||
fun `access$getFoo$p`(p: A.Companion): Int defined in A.Companion
|
|
||||||
fun `access$getFoo$p`(p: A.Companion): Int = 1
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:31:9: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA$Companion;I)V):
|
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
||||||
fun `access$setFoo$p`(p: A.Companion, d: Int): Unit defined in A.Companion
|
|
||||||
fun `access$setFoo$p`(p: A.Companion, d: Int) {}
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
|
|||||||
+17
-17
@@ -1,41 +1,41 @@
|
|||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
||||||
fun <get-foo>(): Int defined in A
|
|
||||||
fun `access$getFoo$p`(a: A): Int defined in A
|
|
||||||
class A {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A
|
|
||||||
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
||||||
class A {
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo(LA;)I):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo(LA;)I):
|
||||||
|
fun `access$getFoo`(`$this`: A): Int defined in A
|
||||||
fun `access$getFoo`(a: A): Int defined in A
|
fun `access$getFoo`(a: A): Int defined in A
|
||||||
fun getFoo(): Int defined in A
|
|
||||||
class A {
|
class A {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo(LA;I)V):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo(LA;I)V):
|
||||||
|
fun `access$setFoo`(`$this`: A, i: Int): Unit defined in A
|
||||||
fun `access$setFoo`(a: A, d: Int): Unit defined in A
|
fun `access$setFoo`(a: A, d: Int): Unit defined in A
|
||||||
fun setFoo(i: Int): Unit defined in A
|
class A {
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
||||||
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
||||||
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
||||||
|
class A {
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
||||||
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
||||||
|
fun `access$getFoo$p`(a: A): Int defined in A
|
||||||
class A {
|
class A {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:5:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:5:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
||||||
fun <get-foo>(): Int defined in A
|
fun `access$getFoo$p`(`$this`: A): Int defined in A
|
||||||
fun `access$getFoo$p`(a: A): Int defined in A
|
fun `access$getFoo$p`(a: A): Int defined in A
|
||||||
fun `access$getFoo$p`(a: A): Int = 1
|
fun `access$getFoo$p`(a: A): Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
||||||
fun <set-foo>(<set-?>: Int): Unit defined in A
|
fun `access$setFoo$p`(`$this`: A, `<set-?>`: Int): Unit defined in A
|
||||||
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
||||||
fun `access$setFoo$p`(a: A, d: Int) {}
|
fun `access$setFoo$p`(a: A, d: Int) {}
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:11:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo(LA;)I):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:11:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo(LA;)I):
|
||||||
|
fun `access$getFoo`(`$this`: A): Int defined in A
|
||||||
fun `access$getFoo`(a: A): Int defined in A
|
fun `access$getFoo`(a: A): Int defined in A
|
||||||
fun getFoo(): Int defined in A
|
|
||||||
fun `access$getFoo`(a: A): Int = 1
|
fun `access$getFoo`(a: A): Int = 1
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:12:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo(LA;I)V):
|
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:12:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo(LA;I)V):
|
||||||
|
fun `access$setFoo`(`$this`: A, i: Int): Unit defined in A
|
||||||
fun `access$setFoo`(a: A, d: Int): Unit defined in A
|
fun `access$setFoo`(a: A, d: Int): Unit defined in A
|
||||||
fun setFoo(i: Int): Unit defined in A
|
|
||||||
fun `access$setFoo`(a: A, d: Int) {}
|
fun `access$setFoo`(a: A, d: Int) {}
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+28
-28
@@ -1,31 +1,31 @@
|
|||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:15:5: error: accidental override: The following declarations have the same JVM signature (access$foo(LDerived;)V):
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$foo(LDerived;)V):
|
||||||
fun `access$foo`(d: Derived): Unit defined in Derived
|
fun `access$foo`(d: Derived): Unit defined in Derived
|
||||||
fun foo(): Unit defined in Derived
|
fun `access$foo`(`$this`: Derived): Unit defined in Derived
|
||||||
private fun foo() {}
|
class Derived : Base() {
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:18:9: error: accidental override: The following declarations have the same JVM signature (access$getBar$p(LDerived;)I):
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$getBoo$p(LDerived;)I):
|
||||||
fun <get-bar>(): Int defined in Derived
|
|
||||||
fun `access$getBar$p`(d: Derived): Int defined in Derived
|
|
||||||
get
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:19:9: error: accidental override: The following declarations have the same JVM signature (access$setBar$p(LDerived;I)V):
|
|
||||||
fun <set-bar>(<set-?>: Int): Unit defined in Derived
|
|
||||||
fun `access$setBar$p`(d: Derived, i: Int): Unit defined in Derived
|
|
||||||
set
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:21:5: error: accidental override: The following declarations have the same JVM signature (access$getBaz$p(LDerived;)I):
|
|
||||||
fun <get-baz>(): Int defined in Derived
|
|
||||||
fun `access$getBaz$p`(d: Derived): Int defined in Derived
|
|
||||||
private var baz = 1
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:23:5: error: accidental override: The following declarations have the same JVM signature (access$getBoo$p(LDerived;)I):
|
|
||||||
fun <get-boo>(): Int defined in Derived
|
|
||||||
fun `access$getBoo$p`(d: Derived): Int defined in Derived
|
fun `access$getBoo$p`(d: Derived): Int defined in Derived
|
||||||
private val boo = 1
|
fun `access$getBoo$p`(`$this`: Derived): Int defined in Derived
|
||||||
^
|
class Derived : Base() {
|
||||||
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:27:9: error: accidental override: The following declarations have the same JVM signature (access$setBar1$p(LDerived;I)V):
|
^
|
||||||
fun <set-bar1>(<set-?>: Int): Unit defined in Derived
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$setBar$p(LDerived;I)V):
|
||||||
|
fun `access$setBar$p`(d: Derived, i: Int): Unit defined in Derived
|
||||||
|
fun `access$setBar$p`(`$this`: Derived, `<set-?>`: Int): Unit defined in Derived
|
||||||
|
class Derived : Base() {
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$getBar$p(LDerived;)I):
|
||||||
|
fun `access$getBar$p`(d: Derived): Int defined in Derived
|
||||||
|
fun `access$getBar$p`(`$this`: Derived): Int defined in Derived
|
||||||
|
class Derived : Base() {
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$setBar1$p(LDerived;I)V):
|
||||||
fun `access$setBar1$p`(d: Derived, i: Int): Unit defined in Derived
|
fun `access$setBar1$p`(d: Derived, i: Int): Unit defined in Derived
|
||||||
set
|
fun `access$setBar1$p`(`$this`: Derived, `<set-?>`: Int): Unit defined in Derived
|
||||||
^
|
class Derived : Base() {
|
||||||
COMPILATION_ERROR
|
^
|
||||||
|
compiler/testData/cli/jvm/syntheticAccessorSignatureClash.kt:14:7: error: accidental override: The following declarations have the same JVM signature (access$getBaz$p(LDerived;)I):
|
||||||
|
fun `access$getBaz$p`(d: Derived): Int defined in Derived
|
||||||
|
fun `access$getBaz$p`(`$this`: Derived): Int defined in Derived
|
||||||
|
class Derived : Base() {
|
||||||
|
^
|
||||||
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
@@ -1 +1,2 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
Vendored
+1
@@ -1 +1,2 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:1:13: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:1:13: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
||||||
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
||||||
^
|
^
|
||||||
|
|||||||
+2
-2
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/variableInWhenSubject.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.2
|
1.3
|
||||||
-XXLanguage\:+VariableDeclarationInWhenSubject
|
-XXLanguage\:+VariableDeclarationInWhenSubject
|
||||||
|
|||||||
+1
-1
@@ -7,5 +7,5 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -32,11 +32,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/abiStabilityIncorrectValue.args");
|
runTest("compiler/testData/cli/jvm/abiStabilityIncorrectValue.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("abiStabilityUnstableWithOldBackend.args")
|
|
||||||
public void testAbiStabilityUnstableWithOldBackend() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/abiStabilityUnstableWithOldBackend.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testAllFilesPresentInJvm() throws Exception {
|
public void testAllFilesPresentInJvm() throws Exception {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cli/jvm"), Pattern.compile("^(.+)\\.args$"), null, false);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cli/jvm"), Pattern.compile("^(.+)\\.args$"), null, false);
|
||||||
}
|
}
|
||||||
@@ -576,11 +571,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/kotlinPackage.args");
|
runTest("compiler/testData/cli/jvm/kotlinPackage.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("kt19628_12.args")
|
|
||||||
public void testKt19628_12() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/kt19628_12.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("kt19628_13.args")
|
@TestMetadata("kt19628_13.args")
|
||||||
public void testKt19628_13() throws Exception {
|
public void testKt19628_13() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/kt19628_13.args");
|
runTest("compiler/testData/cli/jvm/kt19628_13.args");
|
||||||
@@ -706,11 +696,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/progressiveModeOn.args");
|
runTest("compiler/testData/cli/jvm/progressiveModeOn.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("releaseCoroutinesApiVersion1.2.args")
|
|
||||||
public void testReleaseCoroutinesApiVersion1_2() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("resultInReturnTypeUnsupportedByDefault14.args")
|
@TestMetadata("resultInReturnTypeUnsupportedByDefault14.args")
|
||||||
public void testResultInReturnTypeUnsupportedByDefault14() throws Exception {
|
public void testResultInReturnTypeUnsupportedByDefault14() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/resultInReturnTypeUnsupportedByDefault14.args");
|
runTest("compiler/testData/cli/jvm/resultInReturnTypeUnsupportedByDefault14.args");
|
||||||
@@ -751,11 +736,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/singleJavaFileRoots.args");
|
runTest("compiler/testData/cli/jvm/singleJavaFileRoots.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("standaloneSamConversionsAreDisabledExplicitlyWithNewInference.args")
|
|
||||||
public void testStandaloneSamConversionsAreDisabledExplicitlyWithNewInference() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/standaloneSamConversionsAreDisabledExplicitlyWithNewInference.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("standaloneSamConversionsAreEnabledWithNewInference.args")
|
@TestMetadata("standaloneSamConversionsAreEnabledWithNewInference.args")
|
||||||
public void testStandaloneSamConversionsAreEnabledWithNewInference() throws Exception {
|
public void testStandaloneSamConversionsAreEnabledWithNewInference() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.args");
|
runTest("compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.args");
|
||||||
|
|||||||
Reference in New Issue
Block a user