[K1, K2, CLI] Mark whole position range of compiler diagnostics in CLI
#KT-64989
This commit is contained in:
committed by
Space Team
parent
5b11308d1b
commit
7eab4b672d
+9
-1
@@ -74,6 +74,8 @@ public abstract class PlainTextMessageRenderer implements MessageRenderer {
|
||||
|
||||
int line = location != null ? location.getLine() : -1;
|
||||
int column = location != null ? location.getColumn() : -1;
|
||||
int lineEnd = location != null ? location.getLineEnd() : -1;
|
||||
int columnEnd = location != null ? location.getColumnEnd() : -1;
|
||||
String lineContent = location != null ? location.getLineContent() : null;
|
||||
|
||||
String path = location != null ? getPath(location) : null;
|
||||
@@ -122,7 +124,13 @@ public abstract class PlainTextMessageRenderer implements MessageRenderer {
|
||||
result.append(lineContent);
|
||||
result.append(LINE_SEPARATOR);
|
||||
result.append(StringsKt.repeat(" ", column - 1));
|
||||
result.append("^");
|
||||
if (lineEnd > line) {
|
||||
result.append(StringsKt.repeat("^", lineContent.length() - column + 1));
|
||||
} else if (lineEnd == line && columnEnd > column) {
|
||||
result.append(StringsKt.repeat("^", columnEnd - column));
|
||||
} else {
|
||||
result.append("^");
|
||||
}
|
||||
}
|
||||
|
||||
return result.toString();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/js/compilationErrorK2.kt:9:13: error: cannot access 'companion object Test : Any': it is private in '/Foo'.
|
||||
Foo.Test
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -10,7 +10,7 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/common.kt:7:1: error: class 'CommonClass' is not abstract and does not implement abstract member 'foo'.
|
||||
class CommonClass : B
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: 'actual interface A : Any' has no corresponding members for expected class members:
|
||||
|
||||
expect fun foo(): Unit
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/kotlinPackage.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.mylibrary
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/js/languageVersion.kt:5:23: error: KSuspendFunctionN interfaces are not allowed as supertypes
|
||||
abstract class Some : KSuspendFunction0<Unit>
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:1:14: warning: the version is greater than the specified API version 1.4.
|
||||
@SinceKotlin("1.5")
|
||||
^
|
||||
^^^^^
|
||||
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:14: warning: the version is greater than the specified API version 1.4.
|
||||
@SinceKotlin("1.6")
|
||||
^
|
||||
^^^^^
|
||||
OK
|
||||
|
||||
+30
-30
@@ -1,94 +1,94 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' 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:13: warning: parameter 'p01' 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: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) {}
|
||||
^
|
||||
|
||||
@@ -1,94 +1,94 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' 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:13: warning: parameter 'p01' 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: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) {}
|
||||
^
|
||||
|
||||
+30
-30
@@ -3,94 +3,94 @@ warning: flag is not supported by this version of the compiler: -Xsingle " quote
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' 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:13: warning: parameter 'p01' 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: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) {}
|
||||
^
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/classAndFileClassClash.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||
@file:JvmName("Foo")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/classAndFileClassClash.kt:6:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||
class Foo {}
|
||||
^
|
||||
^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/classAndOtherFileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||
@file:JvmName("Foo")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/classAndOtherFileClassClash2.kt:3:1: error: duplicate JVM class name 'test/Foo' generated from: Foo, Foo
|
||||
class Foo
|
||||
^
|
||||
^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/classAndPartClash.kt:1:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: ClassAndPartClashKt, ClassAndPartClashKt
|
||||
package test
|
||||
^
|
||||
^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/classAndPartClash.kt:5:1: error: duplicate JVM class name 'test/ClassAndPartClashKt' generated from: ClassAndPartClashKt, ClassAndPartClashKt
|
||||
class ClassAndPartClashKt
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/classAndTraitClash.kt:3:1: error: duplicate JVM class name 'test/T1$DefaultImpls' generated from: `T1$DefaultImpls`, DefaultImpls
|
||||
interface T1 {
|
||||
^
|
||||
^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/classAndTraitClash.kt:7:1: error: duplicate JVM class name 'test/T1$DefaultImpls' generated from: `T1$DefaultImpls`, DefaultImpls
|
||||
class `T1$DefaultImpls` {
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/compatqualUsage.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
b.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/compatqualUsage.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
b.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -3,11 +3,11 @@ compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:3:9: error: platform dec
|
||||
fun getX(): Int defined in Foo
|
||||
fun getY(): Int defined in Foo
|
||||
get() = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:8:5: error: platform declaration clash: The following declarations have the same JVM signature (getX()I):
|
||||
fun `<get-x>`(): Int defined in Foo
|
||||
fun getX(): Int defined in Foo
|
||||
fun getY(): Int defined in Foo
|
||||
@JvmName("getX")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -3,11 +3,11 @@ compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:3:9: error: platform dec
|
||||
fun getX(): Int defined in Foo
|
||||
fun getY(): Int defined in Foo
|
||||
get() = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/conflictingJvmDeclarations.kt:8:5: error: platform declaration clash: The following declarations have the same JVM signature (getX()I):
|
||||
fun `<get-x>`(): Int defined in Foo
|
||||
fun getX(): Int defined in Foo
|
||||
fun getY(): Int defined in Foo
|
||||
@JvmName("getX")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/conflictingOverloads.kt:1:1: error: conflicting overloads: [fun a(): List<String>]
|
||||
fun a(): List<Int> = null!!
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/conflictingOverloads.kt:2:1: error: conflicting overloads: [fun a(): List<Int>]
|
||||
fun a(): List<String> = null!!
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+5
-5
@@ -1,16 +1,16 @@
|
||||
compiler/testData/cli/jvm/conflictingProjection.kt:10:19: error: projection is conflicting with variance of the corresponding type parameter of 'Out<in kotlin.Int>'. Remove the projection or replace it with '*'.
|
||||
fun a8(value: Out<in Int>) {}
|
||||
^
|
||||
^^
|
||||
compiler/testData/cli/jvm/conflictingProjection.kt:17:15: error: variance annotations are only allowed for type parameters of classes and interfaces.
|
||||
typealias A13<in K> = In<K>
|
||||
^
|
||||
^^
|
||||
compiler/testData/cli/jvm/conflictingProjection.kt:18:15: error: variance annotations are only allowed for type parameters of classes and interfaces.
|
||||
typealias A14<in K> = In<in K>
|
||||
^
|
||||
^^
|
||||
compiler/testData/cli/jvm/conflictingProjection.kt:19:15: error: variance annotations are only allowed for type parameters of classes and interfaces.
|
||||
typealias A15<in K> = In<out K>
|
||||
^
|
||||
^^
|
||||
compiler/testData/cli/jvm/conflictingProjection.kt:19:26: error: projection is conflicting with variance of the corresponding type parameter of 'In<out K>'. Remove the projection or replace it with '*'.
|
||||
typealias A15<in K> = In<out K>
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.kt:4:49: error: the feature "enum entries" is disabled
|
||||
val entries = java.util.concurrent.TimeUnit.entries
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/enumEntriesNotEnabled.kt:7:26: error: the feature "enum entries" is disabled
|
||||
val entries = MyEnum.entries
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
warning: language version 2.1 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/errorSuppression.kt:1:11: warning: this code uses error suppression for 'UNSUPPORTED'. While it might compile and work, the compiler behavior is UNSPECIFIED and WON'T BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue
|
||||
@Suppress("UNSUPPORTED")
|
||||
^
|
||||
^^^^^^^^^^^^^
|
||||
OK
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/newInferenceImpliesSamConversions.kt:4:9: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
||||
foo { }
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/newInferenceImpliesSamConversions.kt:4:9: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
||||
foo { }
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/extendedCheckers.kt:2:12: warning: redundant explicit type.
|
||||
val i: Int = 1
|
||||
^
|
||||
^^^
|
||||
OK
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin
|
||||
^
|
||||
^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/fileClassAndMultifileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: Util, Util
|
||||
@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: Util, Util
|
||||
@file:JvmName("Util")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/fileClassClashMultipleFiles2.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: Util, Util
|
||||
@file:JvmName("Util")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
compiler/testData/cli/jvm/firDeprecationJava.kt:3:12: warning: '@Deprecated(...) fun stop(): Unit' is deprecated. Deprecated in Java.
|
||||
thread.stop()
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/firDeprecationJava.kt:4:17: warning: '@Deprecated(...) fun bar(a: String!, b: Int, c: Double): String!' is deprecated. Deprecated in Java.
|
||||
JavaClass().bar("", 1, 2.0)
|
||||
^
|
||||
^^^
|
||||
compiler/testData/cli/jvm/firDeprecationJava.kt:5:27: warning: '@Deprecated(...) field baz: (MutableList<String!>..List<String!>?)' is deprecated. Deprecated in Java.
|
||||
val baz = JavaClass().baz
|
||||
^
|
||||
^^^
|
||||
OK
|
||||
|
||||
+4
-4
@@ -1,18 +1,18 @@
|
||||
compiler/testData/cli/jvm/firError.kt:1:13: error: 'val' on function parameter is prohibited.
|
||||
fun println(val x: Int) {}
|
||||
^
|
||||
^^^
|
||||
compiler/testData/cli/jvm/firError.kt:5:13: error: variable 'x' must be initialized.
|
||||
println(x)
|
||||
^
|
||||
compiler/testData/cli/jvm/firError.kt:10:16: error: subclass 'public' exposes its 'private-in-file' supertype 'Private'.
|
||||
class Public : Private() {
|
||||
^
|
||||
^^^^^^^
|
||||
compiler/testData/cli/jvm/firError.kt:10:16: error: this type is final, so it cannot be extended.
|
||||
class Public : Private() {
|
||||
^
|
||||
^^^^^^^
|
||||
compiler/testData/cli/jvm/firError.kt:11:5: error: property must be initialized or be abstract.
|
||||
val x: Private
|
||||
^
|
||||
^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/firError.kt:11:9: error: property 'public' exposes its 'private-in-file' type 'Private'.
|
||||
val x: Private
|
||||
^
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/firErrorOnLastLine.kt:1:9: error: 'this' is not defined in this context.
|
||||
val x = this
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/firErrorOnLastLine.kt:2:9: error: 'this' is not defined in this context.
|
||||
val y = this // EOL AFTER THIS LINE!
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/firErrorOnLastLineNoEol.kt:1:9: error: 'this' is not defined in this context.
|
||||
val x = this
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/firErrorOnLastLineNoEol.kt:2:9: error: 'this' is not defined in this context.
|
||||
val y = this // *NO* EOL AFTER THIS LINE!
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.kt:2:11: error: unresolved reference 'NullPointerException'.
|
||||
throw NullPointerException()
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.kt:2:11: error: type mismatch: inferred type is 'ERROR CLASS: Unresolved name: NullPointerException', but 'kotlin.Throwable' was expected.
|
||||
throw NullPointerException()
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
compiler/testData/cli/jvm/firLightTree.kt:2:5: error: variable expected.
|
||||
this += "Alpha"
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:15: error: classifier 'class System : Any' does not have a companion object, so it cannot be used as an expression.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:15: error: variable expected.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:24: error: null cannot be a value of a non-null type 'kotlin.Unit'.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
compiler/testData/cli/jvm/firLightTree.kt:2:5: error: variable expected.
|
||||
this += "Alpha"
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:15: error: classifier 'class System : Any' does not have a companion object, so it cannot be used as an expression.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:15: error: variable expected.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firLightTree.kt:3:24: error: null cannot be a value of a non-null type 'kotlin.Unit'.
|
||||
java.lang.System = null
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -10,7 +10,7 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/common.kt:7:1: error: class 'CommonClass' is not abstract and does not implement abstract member 'foo'.
|
||||
class CommonClass : B
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: 'actual interface A : Any' has no corresponding members for expected class members:
|
||||
|
||||
expect fun foo(): Unit
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect interface A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors/jvm.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual interface A {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
@@ -10,8 +10,8 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect interface A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors/jvm.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual interface A {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/forbidKotlinPackage.kt:4:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.internal
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/forbidKotlinPackage.kt:4:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.internal
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -10,14 +10,14 @@ compiler or generated code. Use it at your own risk!
|
||||
warning: -Xfragments flag is not supported for language version < 2.0
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:5:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class B {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/b.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/c.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class B {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
@@ -9,14 +9,14 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:5:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class B {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/b.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/c.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class B {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
@@ -9,14 +9,14 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/a.kt:5:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class B {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/b.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class A {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/hmpp/src/c.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class B {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:6:1: error: 'lateinit' modifier 'is not allowed on delegated properties'.
|
||||
lateinit var kest by Delegate
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:9:5: error: 'lateinit' modifier 'is allowed only on mutable properties'.
|
||||
lateinit val fest = "10"
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:9:5: error: 'lateinit' modifier 'is not allowed on properties with initializer'.
|
||||
lateinit val fest = "10"
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:11:5: error: 'lateinit' modifier 'is not allowed on properties of a type with nullable upper bound'.
|
||||
lateinit var xest: String?
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:12:5: error: 'lateinit' modifier 'is not allowed on properties of primitive types'.
|
||||
lateinit var nest: Int
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:13:5: error: 'lateinit' modifier 'is allowed only on mutable properties'.
|
||||
lateinit val dest: String
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:13:5: error: 'lateinit' modifier 'is not allowed on properties with a custom getter or setter'.
|
||||
lateinit val dest: String
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:18:5: error: 'lateinit' modifier 'is not allowed on properties of a type with nullable upper bound'.
|
||||
lateinit var best: T
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/inapplicableLateinitModifier.kt:23:5: error: 'lateinit' modifier 'is not allowed on local variables with initializer'.
|
||||
lateinit var b: B<String> = B()
|
||||
^
|
||||
^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/inlineCycle.kt:2:5: error: the 'b' invocation is a part of inline cycle
|
||||
b(q)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/inlineCycle.kt:18:5: error: the 'a' invocation is a part of inline cycle
|
||||
a(p)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:2:26: error: cannot access '<this>' before the instance has been initialized.
|
||||
constructor(x: Int = getSomeInt(), other: A = this, header: String = keker) {}
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:2:51: error: cannot access '<this>' before the instance has been initialized.
|
||||
constructor(x: Int = getSomeInt(), other: A = this, header: String = keker) {}
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:2:74: error: cannot access '<this>' before the instance has been initialized.
|
||||
constructor(x: Int = getSomeInt(), other: A = this, header: String = keker) {}
|
||||
^
|
||||
^^^^^
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:7:20: error: 'this' is not defined in this context.
|
||||
class B(other: B = this)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:10:32: error: argument type mismatch: actual type is 'kotlin.Function0<ERROR CLASS: Unknown return lambda parameter type>', but 'kotlin.Int' was expected.
|
||||
constructor(x: Int) : this({
|
||||
^
|
||||
compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:12:9: error: cannot access '<this>' before the instance has been initialized.
|
||||
this
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/internalArgDisableLanguageFeature.kt:1:1: error: the feature "sealed interfaces" is disabled
|
||||
sealed interface A
|
||||
^
|
||||
^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
compiler/testData/cli/jvm/internalArgEnableLanguageFeature.kt:9:1: error: class 'Impl' overrides 'var' property 'a' with inherited 'val' property 'public final val /Open.a: kotlin/String
|
||||
public get(): kotlin/String'.
|
||||
class Impl : Open(), Interface
|
||||
^
|
||||
^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/languageVersion.kt:5:23: error: KSuspendFunctionN interfaces are not allowed as supertypes
|
||||
abstract class Some : KSuspendFunction0<Unit>
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/javaSrcWrongPackage.kt:1:24: error: return type mismatch: expected 'A.Nested', actual 'foo.A.Nested!'.
|
||||
fun test(): A.Nested = A().nested()
|
||||
^
|
||||
^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/javaSrcWrongPackage.kt:1:28: error: cannot access class 'foo.A.Nested'. Check your module classpath for missing or conflicting dependencies.
|
||||
fun test(): A.Nested = A().nested()
|
||||
^
|
||||
^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: type mismatch: inferred type is Nothing? but String was expected
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: unsafe use of a nullable receiver of type String?
|
||||
a.bar().hashCode()
|
||||
^
|
||||
^^^^^^^
|
||||
OK
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
warning: language version 1.6 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: type mismatch: inferred type is Nothing? but String was expected
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: unsafe use of a nullable receiver of type String?
|
||||
a.bar().hashCode()
|
||||
^
|
||||
^^^^^^^
|
||||
OK
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'kotlin.String?'.
|
||||
a.bar().hashCode()
|
||||
^
|
||||
^^^^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'kotlin.String?'.
|
||||
a.bar().hashCode()
|
||||
^
|
||||
^^^^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305DefaultMigration.kt:2:19: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
annotated.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@ warning: argument -Xjsr305-annotations is deprecated. Please use -Xjsr305 instea
|
||||
warning: option 'enable' for -Xjsr305 flag is deprecated. Please use 'strict' instead
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
warning: argument -Xjsr305-annotations is deprecated. Please use -Xjsr305 instead
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:3:19: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
annotated.bar(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:2:19: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
annotated.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:3:19: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
annotated.bar(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:3:19: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
annotated.bar(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:2:19: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
annotated.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:4:5: warning: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'kotlin.String?'.
|
||||
annotated.nullable().length
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
OK
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:2:19: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
annotated.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:4:5: warning: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'kotlin.String?'.
|
||||
annotated.nullable().length
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
OK
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:2:19: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
annotated.foo(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:3:19: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
annotated.bar(null)
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/jvm/jsr305Migration.kt:4:5: warning: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'kotlin.String?'.
|
||||
annotated.nullable().length
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: warning: Java type mismatch: inferred type is 'kotlin.Nothing?', but 'kotlin.String' was expected.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -10,5 +10,5 @@ compiler or generated code. Use it at your own risk!
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/jvmRecord.kt:1:1: error: using @JvmRecord is only allowed with -jvm-target 16 or later (or -jvm-target 15 with the -Xjvm-enable-preview flag enabled)
|
||||
@JvmRecord
|
||||
^
|
||||
^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class AtomicRef<T> {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/jvm.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class AtomicRef<T> constructor(value: T) {
|
||||
^
|
||||
^^^^^^
|
||||
OK
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ warning: unable to find kotlin-script-runtime.jar in the Kotlin home directory.
|
||||
warning: unable to find kotlin-reflect.jar in the Kotlin home directory. Pass either '-no-reflect' or '-no-stdlib' to prevent adding it to the classpath, or the correct '-kotlin-home'
|
||||
compiler/testData/cli/jvm/simple.kt:1:14: error: unresolved reference 'println'.
|
||||
fun main() = println("hello world")
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/kotlinPackage.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.mylibrary
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
warning: language version 1.5 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
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: an annotation argument must be a compile-time constant
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_13.kt:8:29: error: unresolved reference: CollapsedStringAdapter
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_13.kt:8:29: error: an annotation argument must be a compile-time constant
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
compiler/testData/cli/jvm/kt19628_progressive.kt:5:29: error: unresolved reference 'CollapsedStringAdapter'.
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_progressive.kt:5:29: error: annotation argument must be a compile-time constant.
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_progressive.kt:8:29: error: unresolved reference 'CollapsedStringAdapter'.
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/kt19628_progressive.kt:8:29: error: annotation argument must be a compile-time constant.
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/languageVersion.kt:5:23: error: KSuspendFunctionN interfaces are not allowed as supertypes
|
||||
abstract class Some : KSuspendFunction0<Unit>
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+30
-30
@@ -1,94 +1,94 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' 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:13: warning: parameter 'p01' 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: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) {}
|
||||
^
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.kt:6:5: error: modifier 'override' is incompatible with 'private'.
|
||||
override protected private val c: Int
|
||||
^
|
||||
^^^^^^^^
|
||||
compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.kt:6:14: error: cannot weaken access privilege private for 'accessor' in 'A'.
|
||||
override protected private val c: Int
|
||||
^
|
||||
^^^^^^^^^
|
||||
compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.kt:6:14: error: abstract property in interface cannot be private.
|
||||
override protected private val c: Int
|
||||
^
|
||||
^^^^^^^^^
|
||||
compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.kt:6:14: error: modifier 'protected' is not applicable inside 'interface'.
|
||||
override protected private val c: Int
|
||||
^
|
||||
^^^^^^^^^
|
||||
compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.kt:6:24: error: modifier 'private' is incompatible with 'override'.
|
||||
override protected private val c: Int
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/noReflect.kt:4:19: error: unresolved reference 'primaryConstructor'.
|
||||
String::class.primaryConstructor
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/noStdlib.kt:4:19: error: unresolved reference 'primaryConstructor'.
|
||||
String::class.primaryConstructor
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/noStdlib.kt:7:5: error: unresolved reference 'listOf'.
|
||||
listOf(42)
|
||||
^
|
||||
^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/nonLocalDisabled.kt:3:9: error: non-local returns are not allowed with inlining disabled
|
||||
return
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/cli/jvm/nonLocalDisabled.kt:7:9: error: non-local returns are not allowed with inlining disabled
|
||||
return@a
|
||||
^
|
||||
^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/severalAnnotations.kt:2:11: error: null cannot be a value of a non-null type 'kotlin.String'.
|
||||
a.foo(null)
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/optInEmptyMessage.kt:8:5: error: this declaration needs opt-in. Its usage must be marked with '@EmptyMarker' or '@OptIn(EmptyMarker::class)'
|
||||
foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/optInEmptyMessageFir.kt:8:5: error: this declaration needs opt-in. Its usage must be marked with '@EmptyMarker' or '@OptIn(EmptyMarker::class)'
|
||||
foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/optInOverrideMessage.kt:16:18: error: base declaration of supertype 'Base' needs opt-in. This API is experimental and can change at any time, please use with care. The declaration override must be annotated with '@Marker' or '@OptIn(Marker::class)'
|
||||
override fun foo() {}
|
||||
^
|
||||
^^^
|
||||
compiler/testData/cli/jvm/optInOverrideMessage.kt:18:18: error: base declaration of supertype 'Base' needs opt-in. The declaration override must be annotated with '@EmptyMarker' or '@OptIn(EmptyMarker::class)'
|
||||
override fun bar() {}
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/optInOverrideMessageFir.kt:16:18: error: base declaration of supertype 'Base' needs opt-in. This API is experimental and can change at any time, please use with care. The declaration override must be annotated with '@Marker' or '@OptIn(Marker::class)'
|
||||
override fun foo() {}
|
||||
^
|
||||
^^^
|
||||
compiler/testData/cli/jvm/optInOverrideMessageFir.kt:18:18: error: base declaration of supertype 'Base' needs opt-in. The declaration override must be annotated with '@EmptyMarker' or '@OptIn(EmptyMarker::class)'
|
||||
override fun bar() {}
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/plugins/multiplePlugins.kt:11:17: error:
|
||||
compiler/testData/cli/jvm/plugins/multiplePlugins.kt:11:17: error:
|
||||
inner class Inner(val s: String)
|
||||
^
|
||||
^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: error: tailrec is not allowed on open members
|
||||
tailrec open fun foo(x: Int) {}
|
||||
^
|
||||
^^^^^^^
|
||||
compiler/testData/cli/jvm/progressive/typeParametersInAnonymousObjects.kt:2:19: error: type parameters are not allowed for objects
|
||||
val x = object<T> { }
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: error: tailrec is prohibited on open members.
|
||||
tailrec open fun foo(x: Int) {}
|
||||
^
|
||||
^^^^^^^
|
||||
compiler/testData/cli/jvm/progressive/typeParametersInAnonymousObjects.kt:2:19: error: type parameters are prohibited for objects.
|
||||
val x = object<T> { }
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.kt:4:13: warning: [DIVISION_BY_ZERO] Division by zero.
|
||||
val x = arg / 0
|
||||
^
|
||||
^^^^^^^
|
||||
OK
|
||||
|
||||
@@ -9,5 +9,5 @@ compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/readingConfigFromEnvironment/overridingXx.kt:3:19: error: the feature "range until operator" is disabled
|
||||
for (x in 100 ..< 1) {
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/recordAsSingleFileRoot.kt:5:14: error: unresolved reference 'Unresolved'.
|
||||
fun error(): Unresolved? = null
|
||||
^
|
||||
^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:8: error: 'class Foo : Any' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
|
||||
import test.access.Foo
|
||||
^
|
||||
^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:15:5: error: 'constructor(): Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
|
||||
Foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:8: error: 'class Foo : Any' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
|
||||
import test.access.Foo
|
||||
^
|
||||
^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:15:5: error: 'constructor(): Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
|
||||
Foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/jvm/returnAsWhenKey.kt:4:5: error: 'when' expression must be exhaustive. Add the 'true', 'false' branches or an 'else' branch.
|
||||
when (true) {
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
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
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
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
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/jvm/selfUpperBoundInference.kt:40:25: warning: unchecked cast: WriterAppender.Builder1<B> to B
|
||||
return this as B
|
||||
^
|
||||
^^^^
|
||||
OK
|
||||
|
||||
+7
-7
@@ -2,32 +2,32 @@ compiler/testData/cli/jvm/signatureClash.kt:6:5: error: accidental override: The
|
||||
fun `<get-x>`(): Int defined in A
|
||||
fun getX(): Int defined in A
|
||||
fun getX() = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/signatureClash.kt:8:5: error: platform declaration clash: The following declarations have the same JVM signature (getA()I):
|
||||
fun `<get-a>`(): Int defined in A
|
||||
fun getA(): Int defined in A
|
||||
fun getA(): Int = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/signatureClash.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (getA()I):
|
||||
fun `<get-a>`(): Int defined in A
|
||||
fun getA(): Int defined in A
|
||||
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):
|
||||
fun `<get-b>`(): Int defined in root package
|
||||
fun getB(): Int defined in root package
|
||||
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):
|
||||
fun `<get-b>`(): Int defined in root package
|
||||
fun getB(): Int defined in root package
|
||||
val b: Int = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^
|
||||
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 getTr(): Int defined in SubTr
|
||||
val tr = 1
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/signatureClash.kt:24:1: 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
|
||||
@@ -37,5 +37,5 @@ compiler/testData/cli/jvm/signatureClash.kt:26:5: error: platform declaration cl
|
||||
fun `access$f`(`$this`: C): Unit defined in C
|
||||
fun `access$f`(c: C): Unit defined in C
|
||||
fun `access$f`(c: C) {}
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ compiler/testData/cli/jvm/singleJavaFileRoots/test.kt:8:5: error: unresolved ref
|
||||
^
|
||||
compiler/testData/cli/jvm/singleJavaFileRoots/test.kt:12:5: error: cannot access 'constructor(): PackageLocal1': it is package-private in 'lib/ext/PackageLocal1'.
|
||||
PackageLocal1()
|
||||
^
|
||||
^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/singleJavaFileRoots/test.kt:13:5: error: cannot access 'constructor(): PackageLocal2': it is package-private in 'lib/ext/PackageLocal2'.
|
||||
PackageLocal2()
|
||||
^
|
||||
^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
compiler/testData/cli/jvm/suspensionPointInMonitor.kt:26:13: error: the 'suspensionPoint' suspension point is inside a critical section.
|
||||
suspensionPoint()
|
||||
^
|
||||
^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/suspensionPointInMonitor.kt:60:17: error: the 'suspensionPoint' suspension point is inside a critical section.
|
||||
suspensionPoint()
|
||||
^
|
||||
^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -22,20 +22,20 @@ compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:6:5: e
|
||||
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 = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:7:5: 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
|
||||
fun `access$setFoo$p`(a: A, d: Int) {}
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:10:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
||||
fun `access$getFoo$cp`(): Int defined in A
|
||||
fun `access$getFoo$cp`(): Int defined in A
|
||||
fun `access$getFoo$cp`(): Int = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:11:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
||||
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) {}
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+4
-4
@@ -22,20 +22,20 @@ compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:6:5:
|
||||
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 = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:7:5: 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
|
||||
fun `access$setFoo$p`(a: A, d: Int) {}
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:12: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 = 1
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt:13: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) {}
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user