diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.java b/compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.java index 250f57a2202..bb3bb6182ae 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.java +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.java @@ -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(); diff --git a/compiler/testData/cli/js/compilationErrorK2.out b/compiler/testData/cli/js/compilationErrorK2.out index 1429a47e346..f6abe5801eb 100644 --- a/compiler/testData/cli/js/compilationErrorK2.out +++ b/compiler/testData/cli/js/compilationErrorK2.out @@ -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 diff --git a/compiler/testData/cli/js/firMultiplatformCompilationWithError.out b/compiler/testData/cli/js/firMultiplatformCompilationWithError.out index b60b9279ca7..1d487dbae13 100644 --- a/compiler/testData/cli/js/firMultiplatformCompilationWithError.out +++ b/compiler/testData/cli/js/firMultiplatformCompilationWithError.out @@ -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 diff --git a/compiler/testData/cli/js/kotlinPackage.out b/compiler/testData/cli/js/kotlinPackage.out index 8c98d2dfb61..22784c0276b 100644 --- a/compiler/testData/cli/js/kotlinPackage.out +++ b/compiler/testData/cli/js/kotlinPackage.out @@ -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 \ No newline at end of file +^^^^^^^^^^^^^^^^^^^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/cli/js/languageVersion.out b/compiler/testData/cli/js/languageVersion.out index d63b6d94e83..a53baec4807 100644 --- a/compiler/testData/cli/js/languageVersion.out +++ b/compiler/testData/cli/js/languageVersion.out @@ -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 - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.out b/compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.out index e127790db59..c8c37dff7c6 100644 --- a/compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.out +++ b/compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.out @@ -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 diff --git a/compiler/testData/cli/jvm/apiVersionLessThanLanguage.out b/compiler/testData/cli/jvm/apiVersionLessThanLanguage.out index 0e547013627..49e68cb8fea 100644 --- a/compiler/testData/cli/jvm/apiVersionLessThanLanguage.out +++ b/compiler/testData/cli/jvm/apiVersionLessThanLanguage.out @@ -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) {} ^ diff --git a/compiler/testData/cli/jvm/apiVersionLessThanLanguageUsingArgfile.out b/compiler/testData/cli/jvm/apiVersionLessThanLanguageUsingArgfile.out index 0e547013627..49e68cb8fea 100644 --- a/compiler/testData/cli/jvm/apiVersionLessThanLanguageUsingArgfile.out +++ b/compiler/testData/cli/jvm/apiVersionLessThanLanguageUsingArgfile.out @@ -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) {} ^ diff --git a/compiler/testData/cli/jvm/argfileWithEscaping.out b/compiler/testData/cli/jvm/argfileWithEscaping.out index dfe742ad6f5..0190f0faa13 100644 --- a/compiler/testData/cli/jvm/argfileWithEscaping.out +++ b/compiler/testData/cli/jvm/argfileWithEscaping.out @@ -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) {} ^ diff --git a/compiler/testData/cli/jvm/classAndFileClassClash.out b/compiler/testData/cli/jvm/classAndFileClassClash.out index 987019e90b6..21884c159d8 100644 --- a/compiler/testData/cli/jvm/classAndFileClassClash.out +++ b/compiler/testData/cli/jvm/classAndFileClassClash.out @@ -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 diff --git a/compiler/testData/cli/jvm/classAndOtherFileClassClash.out b/compiler/testData/cli/jvm/classAndOtherFileClassClash.out index 461d0e939f8..b440d6e42fa 100644 --- a/compiler/testData/cli/jvm/classAndOtherFileClassClash.out +++ b/compiler/testData/cli/jvm/classAndOtherFileClassClash.out @@ -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 diff --git a/compiler/testData/cli/jvm/classAndPartClash.out b/compiler/testData/cli/jvm/classAndPartClash.out index 059073ec43b..364cd8f73eb 100644 --- a/compiler/testData/cli/jvm/classAndPartClash.out +++ b/compiler/testData/cli/jvm/classAndPartClash.out @@ -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 diff --git a/compiler/testData/cli/jvm/classAndTraitClash.out b/compiler/testData/cli/jvm/classAndTraitClash.out index a7d623d0de8..f23427ee973 100644 --- a/compiler/testData/cli/jvm/classAndTraitClash.out +++ b/compiler/testData/cli/jvm/classAndTraitClash.out @@ -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 \ No newline at end of file +^^^^^^^^^^^^^^^^^^^^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/compatqualDefault.out b/compiler/testData/cli/jvm/compatqualDefault.out index 3b72b74dc49..19236fa969a 100644 --- a/compiler/testData/cli/jvm/compatqualDefault.out +++ b/compiler/testData/cli/jvm/compatqualDefault.out @@ -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 diff --git a/compiler/testData/cli/jvm/compatqualEnable.out b/compiler/testData/cli/jvm/compatqualEnable.out index 3b72b74dc49..19236fa969a 100644 --- a/compiler/testData/cli/jvm/compatqualEnable.out +++ b/compiler/testData/cli/jvm/compatqualEnable.out @@ -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 diff --git a/compiler/testData/cli/jvm/conflictingJvmDeclarations.out b/compiler/testData/cli/jvm/conflictingJvmDeclarations.out index a50d64fa1cc..c7553877db0 100644 --- a/compiler/testData/cli/jvm/conflictingJvmDeclarations.out +++ b/compiler/testData/cli/jvm/conflictingJvmDeclarations.out @@ -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 ``(): Int defined in Foo fun getX(): Int defined in Foo fun getY(): Int defined in Foo @JvmName("getX") - ^ + ^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/conflictingJvmDeclarationsK2.out b/compiler/testData/cli/jvm/conflictingJvmDeclarationsK2.out index a50d64fa1cc..c7553877db0 100644 --- a/compiler/testData/cli/jvm/conflictingJvmDeclarationsK2.out +++ b/compiler/testData/cli/jvm/conflictingJvmDeclarationsK2.out @@ -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 ``(): Int defined in Foo fun getX(): Int defined in Foo fun getY(): Int defined in Foo @JvmName("getX") - ^ + ^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/conflictingOverloads.out b/compiler/testData/cli/jvm/conflictingOverloads.out index 8c0748b8a67..9d7235a1fc0 100644 --- a/compiler/testData/cli/jvm/conflictingOverloads.out +++ b/compiler/testData/cli/jvm/conflictingOverloads.out @@ -1,7 +1,7 @@ compiler/testData/cli/jvm/conflictingOverloads.kt:1:1: error: conflicting overloads: [fun a(): List] fun a(): List = null!! -^ +^^^^^^^^^^^^^^^^^^ compiler/testData/cli/jvm/conflictingOverloads.kt:2:1: error: conflicting overloads: [fun a(): List] fun a(): List = null!! -^ +^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/conflictingProjection.out b/compiler/testData/cli/jvm/conflictingProjection.out index 40a8ca5c0bc..118d74350bb 100644 --- a/compiler/testData/cli/jvm/conflictingProjection.out +++ b/compiler/testData/cli/jvm/conflictingProjection.out @@ -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'. Remove the projection or replace it with '*'. fun a8(value: Out) {} - ^ + ^^ compiler/testData/cli/jvm/conflictingProjection.kt:17:15: error: variance annotations are only allowed for type parameters of classes and interfaces. typealias A13 = In - ^ + ^^ compiler/testData/cli/jvm/conflictingProjection.kt:18:15: error: variance annotations are only allowed for type parameters of classes and interfaces. typealias A14 = In - ^ + ^^ compiler/testData/cli/jvm/conflictingProjection.kt:19:15: error: variance annotations are only allowed for type parameters of classes and interfaces. typealias A15 = In - ^ + ^^ compiler/testData/cli/jvm/conflictingProjection.kt:19:26: error: projection is conflicting with variance of the corresponding type parameter of 'In'. Remove the projection or replace it with '*'. typealias A15 = In - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.out b/compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.out index 1097b3a7fa4..9dceac9239f 100644 --- a/compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.out +++ b/compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.out @@ -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 diff --git a/compiler/testData/cli/jvm/enumEntriesNotEnabled.out b/compiler/testData/cli/jvm/enumEntriesNotEnabled.out index f6aeea1de37..658ee780a6e 100644 --- a/compiler/testData/cli/jvm/enumEntriesNotEnabled.out +++ b/compiler/testData/cli/jvm/enumEntriesNotEnabled.out @@ -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 diff --git a/compiler/testData/cli/jvm/errorSuppressionWarning.out b/compiler/testData/cli/jvm/errorSuppressionWarning.out index be5f947b344..cc3955674f1 100644 --- a/compiler/testData/cli/jvm/errorSuppressionWarning.out +++ b/compiler/testData/cli/jvm/errorSuppressionWarning.out @@ -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 diff --git a/compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.out b/compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.out index 54684366229..84fe792ba3b 100644 --- a/compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.out +++ b/compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.out @@ -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 diff --git a/compiler/testData/cli/jvm/explicitlyDisabledSamConversions.out b/compiler/testData/cli/jvm/explicitlyDisabledSamConversions.out index 54684366229..84fe792ba3b 100644 --- a/compiler/testData/cli/jvm/explicitlyDisabledSamConversions.out +++ b/compiler/testData/cli/jvm/explicitlyDisabledSamConversions.out @@ -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 diff --git a/compiler/testData/cli/jvm/extendedCheckers.out b/compiler/testData/cli/jvm/extendedCheckers.out index a463e8f6ab6..46c6b2d05f2 100644 --- a/compiler/testData/cli/jvm/extendedCheckers.out +++ b/compiler/testData/cli/jvm/extendedCheckers.out @@ -1,4 +1,4 @@ compiler/testData/cli/jvm/extendedCheckers.kt:2:12: warning: redundant explicit type. val i: Int = 1 - ^ + ^^^ OK diff --git a/compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.out b/compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.out index 39544409b6e..3ce5cc54a71 100644 --- a/compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.out +++ b/compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.out @@ -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 diff --git a/compiler/testData/cli/jvm/fileClassAndMultifileClassClash.out b/compiler/testData/cli/jvm/fileClassAndMultifileClassClash.out index 194828b65b5..61f2b3b6983 100644 --- a/compiler/testData/cli/jvm/fileClassAndMultifileClassClash.out +++ b/compiler/testData/cli/jvm/fileClassAndMultifileClassClash.out @@ -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 diff --git a/compiler/testData/cli/jvm/fileClassClashMultipleFiles.out b/compiler/testData/cli/jvm/fileClassClashMultipleFiles.out index 4aa58d5e670..4756986f2ca 100644 --- a/compiler/testData/cli/jvm/fileClassClashMultipleFiles.out +++ b/compiler/testData/cli/jvm/fileClassClashMultipleFiles.out @@ -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 diff --git a/compiler/testData/cli/jvm/firDeprecationJava.out b/compiler/testData/cli/jvm/firDeprecationJava.out index 0acb52df94f..3a36aeed1a2 100644 --- a/compiler/testData/cli/jvm/firDeprecationJava.out +++ b/compiler/testData/cli/jvm/firDeprecationJava.out @@ -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..List?)' is deprecated. Deprecated in Java. val baz = JavaClass().baz - ^ + ^^^ OK diff --git a/compiler/testData/cli/jvm/firError.out b/compiler/testData/cli/jvm/firError.out index 198e01ef64d..59c63e08990 100644 --- a/compiler/testData/cli/jvm/firError.out +++ b/compiler/testData/cli/jvm/firError.out @@ -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 ^ diff --git a/compiler/testData/cli/jvm/firErrorOnLastLine.out b/compiler/testData/cli/jvm/firErrorOnLastLine.out index 3aeda3da7ed..22e1d053552 100644 --- a/compiler/testData/cli/jvm/firErrorOnLastLine.out +++ b/compiler/testData/cli/jvm/firErrorOnLastLine.out @@ -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 diff --git a/compiler/testData/cli/jvm/firErrorOnLastLineNoEol.out b/compiler/testData/cli/jvm/firErrorOnLastLineNoEol.out index 49a8bd6fd9c..e051913385b 100644 --- a/compiler/testData/cli/jvm/firErrorOnLastLineNoEol.out +++ b/compiler/testData/cli/jvm/firErrorOnLastLineNoEol.out @@ -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 diff --git a/compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.out b/compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.out index 657533481b8..33434cc337e 100644 --- a/compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.out +++ b/compiler/testData/cli/jvm/firFriendlyErrorIfNoJdkOptionIsSet.out @@ -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 diff --git a/compiler/testData/cli/jvm/firLightTreeOff.out b/compiler/testData/cli/jvm/firLightTreeOff.out index 61bbf2420af..5f926f202a8 100644 --- a/compiler/testData/cli/jvm/firLightTreeOff.out +++ b/compiler/testData/cli/jvm/firLightTreeOff.out @@ -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 diff --git a/compiler/testData/cli/jvm/firLightTreeOn.out b/compiler/testData/cli/jvm/firLightTreeOn.out index 61bbf2420af..5f926f202a8 100644 --- a/compiler/testData/cli/jvm/firLightTreeOn.out +++ b/compiler/testData/cli/jvm/firLightTreeOn.out @@ -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 diff --git a/compiler/testData/cli/jvm/firMultiplatformCompilationWithError.out b/compiler/testData/cli/jvm/firMultiplatformCompilationWithError.out index b60b9279ca7..1d487dbae13 100644 --- a/compiler/testData/cli/jvm/firMultiplatformCompilationWithError.out +++ b/compiler/testData/cli/jvm/firMultiplatformCompilationWithError.out @@ -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 diff --git a/compiler/testData/cli/jvm/firMultiplatformCompilationWithPsiWithoutErrors.out b/compiler/testData/cli/jvm/firMultiplatformCompilationWithPsiWithoutErrors.out index 77f0bfee80c..85989d9b011 100644 --- a/compiler/testData/cli/jvm/firMultiplatformCompilationWithPsiWithoutErrors.out +++ b/compiler/testData/cli/jvm/firMultiplatformCompilationWithPsiWithoutErrors.out @@ -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 diff --git a/compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors.out b/compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors.out index 77f0bfee80c..85989d9b011 100644 --- a/compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors.out +++ b/compiler/testData/cli/jvm/firMultiplatformCompilationWithoutErrors.out @@ -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 diff --git a/compiler/testData/cli/jvm/forbidKotlinPackageK1.out b/compiler/testData/cli/jvm/forbidKotlinPackageK1.out index 05d8a508785..74b1d571f44 100644 --- a/compiler/testData/cli/jvm/forbidKotlinPackageK1.out +++ b/compiler/testData/cli/jvm/forbidKotlinPackageK1.out @@ -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 diff --git a/compiler/testData/cli/jvm/forbidKotlinPackageK2.out b/compiler/testData/cli/jvm/forbidKotlinPackageK2.out index 05d8a508785..74b1d571f44 100644 --- a/compiler/testData/cli/jvm/forbidKotlinPackageK2.out +++ b/compiler/testData/cli/jvm/forbidKotlinPackageK2.out @@ -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 diff --git a/compiler/testData/cli/jvm/hmpp/lowLanguageVersion.out b/compiler/testData/cli/jvm/hmpp/lowLanguageVersion.out index dd3fd6d649d..94fd99c26b9 100644 --- a/compiler/testData/cli/jvm/hmpp/lowLanguageVersion.out +++ b/compiler/testData/cli/jvm/hmpp/lowLanguageVersion.out @@ -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 diff --git a/compiler/testData/cli/jvm/hmpp/successfulCompilation.out b/compiler/testData/cli/jvm/hmpp/successfulCompilation.out index ed6e18e23dd..1aa2f34d0e8 100644 --- a/compiler/testData/cli/jvm/hmpp/successfulCompilation.out +++ b/compiler/testData/cli/jvm/hmpp/successfulCompilation.out @@ -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 diff --git a/compiler/testData/cli/jvm/hmpp/successfulCompilation2.out b/compiler/testData/cli/jvm/hmpp/successfulCompilation2.out index ed6e18e23dd..1aa2f34d0e8 100644 --- a/compiler/testData/cli/jvm/hmpp/successfulCompilation2.out +++ b/compiler/testData/cli/jvm/hmpp/successfulCompilation2.out @@ -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 diff --git a/compiler/testData/cli/jvm/inapplicableLateinitModifier.out b/compiler/testData/cli/jvm/inapplicableLateinitModifier.out index 6960871cc27..e4627beb680 100644 --- a/compiler/testData/cli/jvm/inapplicableLateinitModifier.out +++ b/compiler/testData/cli/jvm/inapplicableLateinitModifier.out @@ -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 = B() - ^ + ^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/inlineCycle.out b/compiler/testData/cli/jvm/inlineCycle.out index 5c8928dd385..2e0cca61b08 100644 --- a/compiler/testData/cli/jvm/inlineCycle.out +++ b/compiler/testData/cli/jvm/inlineCycle.out @@ -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 diff --git a/compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.out b/compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.out index 348a3b5e617..5ce85a75d12 100644 --- a/compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.out +++ b/compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.out @@ -1,19 +1,19 @@ compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:2:26: error: cannot access '' 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 '' 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 '' 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', but 'kotlin.Int' was expected. constructor(x: Int) : this({ ^ compiler/testData/cli/jvm/instanceAccessBeforeSuperCall.kt:12:9: error: cannot access '' before the instance has been initialized. this - ^ + ^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out b/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out index 9620adcd8e7..dde9ddb6f37 100644 --- a/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out +++ b/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out @@ -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 diff --git a/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out b/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out index e72e9b1f61d..cbeb31fca23 100644 --- a/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out +++ b/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out @@ -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 diff --git a/compiler/testData/cli/jvm/internalArgOverrideOffLanguageFeature.out b/compiler/testData/cli/jvm/internalArgOverrideOffLanguageFeature.out index 6bf30614cbd..9f57b2ecb0c 100644 --- a/compiler/testData/cli/jvm/internalArgOverrideOffLanguageFeature.out +++ b/compiler/testData/cli/jvm/internalArgOverrideOffLanguageFeature.out @@ -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 - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/javaSrcWrongPackage.out b/compiler/testData/cli/jvm/javaSrcWrongPackage.out index c2af403cef1..06b8c7ac35d 100644 --- a/compiler/testData/cli/jvm/javaSrcWrongPackage.out +++ b/compiler/testData/cli/jvm/javaSrcWrongPackage.out @@ -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 diff --git a/compiler/testData/cli/jvm/jspecifyByLv15.out b/compiler/testData/cli/jvm/jspecifyByLv15.out index c472d0bcbfa..654031b9be5 100644 --- a/compiler/testData/cli/jvm/jspecifyByLv15.out +++ b/compiler/testData/cli/jvm/jspecifyByLv15.out @@ -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 diff --git a/compiler/testData/cli/jvm/jspecifyByLv16.out b/compiler/testData/cli/jvm/jspecifyByLv16.out index 718a8e34509..26feb91fef1 100644 --- a/compiler/testData/cli/jvm/jspecifyByLv16.out +++ b/compiler/testData/cli/jvm/jspecifyByLv16.out @@ -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 diff --git a/compiler/testData/cli/jvm/jspecifyDefault.out b/compiler/testData/cli/jvm/jspecifyDefault.out index 7f7a58896f3..4d5f7afbe40 100644 --- a/compiler/testData/cli/jvm/jspecifyDefault.out +++ b/compiler/testData/cli/jvm/jspecifyDefault.out @@ -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 diff --git a/compiler/testData/cli/jvm/jspecifyStrict.out b/compiler/testData/cli/jvm/jspecifyStrict.out index 84f90ffadc2..e71b8b8fbac 100644 --- a/compiler/testData/cli/jvm/jspecifyStrict.out +++ b/compiler/testData/cli/jvm/jspecifyStrict.out @@ -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 diff --git a/compiler/testData/cli/jvm/jspecifyWarn.out b/compiler/testData/cli/jvm/jspecifyWarn.out index 7f7a58896f3..4d5f7afbe40 100644 --- a/compiler/testData/cli/jvm/jspecifyWarn.out +++ b/compiler/testData/cli/jvm/jspecifyWarn.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305DefaultMigration.out b/compiler/testData/cli/jvm/jsr305DefaultMigration.out index 02c7e6c9075..0908ef76eb6 100644 --- a/compiler/testData/cli/jvm/jsr305DefaultMigration.out +++ b/compiler/testData/cli/jvm/jsr305DefaultMigration.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305DeprecatedEnable.out b/compiler/testData/cli/jvm/jsr305DeprecatedEnable.out index 8080b05bd3b..c6b1cc7b37e 100644 --- a/compiler/testData/cli/jvm/jsr305DeprecatedEnable.out +++ b/compiler/testData/cli/jvm/jsr305DeprecatedEnable.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305DeprecatedWarn.out b/compiler/testData/cli/jvm/jsr305DeprecatedWarn.out index 89d4681c329..da669b14e08 100644 --- a/compiler/testData/cli/jvm/jsr305DeprecatedWarn.out +++ b/compiler/testData/cli/jvm/jsr305DeprecatedWarn.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305FqNameIgnore.out b/compiler/testData/cli/jvm/jsr305FqNameIgnore.out index 9c3b1a6641e..2d237febd91 100644 --- a/compiler/testData/cli/jvm/jsr305FqNameIgnore.out +++ b/compiler/testData/cli/jvm/jsr305FqNameIgnore.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305FqNameStrict.out b/compiler/testData/cli/jvm/jsr305FqNameStrict.out index 832742ddb63..257c026eaec 100644 --- a/compiler/testData/cli/jvm/jsr305FqNameStrict.out +++ b/compiler/testData/cli/jvm/jsr305FqNameStrict.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305MigrationDefault.out b/compiler/testData/cli/jvm/jsr305MigrationDefault.out index 9c3b1a6641e..2d237febd91 100644 --- a/compiler/testData/cli/jvm/jsr305MigrationDefault.out +++ b/compiler/testData/cli/jvm/jsr305MigrationDefault.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305MigrationFqNameIgnore.out b/compiler/testData/cli/jvm/jsr305MigrationFqNameIgnore.out index a14ffd95130..73075c1715e 100644 --- a/compiler/testData/cli/jvm/jsr305MigrationFqNameIgnore.out +++ b/compiler/testData/cli/jvm/jsr305MigrationFqNameIgnore.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305MigrationIgnore.out b/compiler/testData/cli/jvm/jsr305MigrationIgnore.out index a14ffd95130..73075c1715e 100644 --- a/compiler/testData/cli/jvm/jsr305MigrationIgnore.out +++ b/compiler/testData/cli/jvm/jsr305MigrationIgnore.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305MigrationWarn.out b/compiler/testData/cli/jvm/jsr305MigrationWarn.out index 90f5472f8e4..b0d8af7b393 100644 --- a/compiler/testData/cli/jvm/jsr305MigrationWarn.out +++ b/compiler/testData/cli/jvm/jsr305MigrationWarn.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305NoFlag.out b/compiler/testData/cli/jvm/jsr305NoFlag.out index 615613ace29..671913fc62c 100644 --- a/compiler/testData/cli/jvm/jsr305NoFlag.out +++ b/compiler/testData/cli/jvm/jsr305NoFlag.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305Strict.out b/compiler/testData/cli/jvm/jsr305Strict.out index 9121ec0f064..83c9b2d2a6f 100644 --- a/compiler/testData/cli/jvm/jsr305Strict.out +++ b/compiler/testData/cli/jvm/jsr305Strict.out @@ -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 diff --git a/compiler/testData/cli/jvm/jsr305Warn.out b/compiler/testData/cli/jvm/jsr305Warn.out index 615613ace29..671913fc62c 100644 --- a/compiler/testData/cli/jvm/jsr305Warn.out +++ b/compiler/testData/cli/jvm/jsr305Warn.out @@ -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 diff --git a/compiler/testData/cli/jvm/jvmRecordWrongTarget.out b/compiler/testData/cli/jvm/jvmRecordWrongTarget.out index 8e7f614a135..b1534a5b7d4 100644 --- a/compiler/testData/cli/jvm/jvmRecordWrongTarget.out +++ b/compiler/testData/cli/jvm/jvmRecordWrongTarget.out @@ -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 diff --git a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out index 4d9ce19111e..d19971d4d6a 100644 --- a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out +++ b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out @@ -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 { -^ +^^^^^^ 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 constructor(value: T) { -^ +^^^^^^ OK diff --git a/compiler/testData/cli/jvm/kotlinHomeWithoutStdlib.out b/compiler/testData/cli/jvm/kotlinHomeWithoutStdlib.out index 92d4bf86b01..608c2e6a097 100644 --- a/compiler/testData/cli/jvm/kotlinHomeWithoutStdlib.out +++ b/compiler/testData/cli/jvm/kotlinHomeWithoutStdlib.out @@ -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 diff --git a/compiler/testData/cli/jvm/kotlinPackage.out b/compiler/testData/cli/jvm/kotlinPackage.out index 8c98d2dfb61..22784c0276b 100644 --- a/compiler/testData/cli/jvm/kotlinPackage.out +++ b/compiler/testData/cli/jvm/kotlinPackage.out @@ -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 \ No newline at end of file +^^^^^^^^^^^^^^^^^^^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/kt19628_13.out b/compiler/testData/cli/jvm/kt19628_13.out index 3bbd6268fbd..4653d3c64e3 100644 --- a/compiler/testData/cli/jvm/kt19628_13.out +++ b/compiler/testData/cli/jvm/kt19628_13.out @@ -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 diff --git a/compiler/testData/cli/jvm/kt19628_progressive.out b/compiler/testData/cli/jvm/kt19628_progressive.out index 239910e2086..cc4acadab1e 100644 --- a/compiler/testData/cli/jvm/kt19628_progressive.out +++ b/compiler/testData/cli/jvm/kt19628_progressive.out @@ -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 diff --git a/compiler/testData/cli/jvm/languageVersion.out b/compiler/testData/cli/jvm/languageVersion.out index 59d93377973..9bf5b00ef9e 100644 --- a/compiler/testData/cli/jvm/languageVersion.out +++ b/compiler/testData/cli/jvm/languageVersion.out @@ -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 - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/mixingArgfilesAndUsualArgs.out b/compiler/testData/cli/jvm/mixingArgfilesAndUsualArgs.out index 0e547013627..49e68cb8fea 100644 --- a/compiler/testData/cli/jvm/mixingArgfilesAndUsualArgs.out +++ b/compiler/testData/cli/jvm/mixingArgfilesAndUsualArgs.out @@ -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) {} ^ diff --git a/compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.out b/compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.out index 3da690d5a2a..c3d5bb1f666 100644 --- a/compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.out +++ b/compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.out @@ -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 diff --git a/compiler/testData/cli/jvm/noReflect.out b/compiler/testData/cli/jvm/noReflect.out index 20d1c6adcf0..0a8ced0035f 100644 --- a/compiler/testData/cli/jvm/noReflect.out +++ b/compiler/testData/cli/jvm/noReflect.out @@ -1,4 +1,4 @@ compiler/testData/cli/jvm/noReflect.kt:4:19: error: unresolved reference 'primaryConstructor'. String::class.primaryConstructor - ^ + ^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/noStdlib.out b/compiler/testData/cli/jvm/noStdlib.out index ca6b1d7c867..81c23c64b6c 100644 --- a/compiler/testData/cli/jvm/noStdlib.out +++ b/compiler/testData/cli/jvm/noStdlib.out @@ -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 diff --git a/compiler/testData/cli/jvm/nonLocalDisabled.out b/compiler/testData/cli/jvm/nonLocalDisabled.out index a7cfcfadfa5..ff62fd5d0f3 100644 --- a/compiler/testData/cli/jvm/nonLocalDisabled.out +++ b/compiler/testData/cli/jvm/nonLocalDisabled.out @@ -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 diff --git a/compiler/testData/cli/jvm/nullabilityAnnotations.out b/compiler/testData/cli/jvm/nullabilityAnnotations.out index 468c9f0e974..2f82b919a96 100644 --- a/compiler/testData/cli/jvm/nullabilityAnnotations.out +++ b/compiler/testData/cli/jvm/nullabilityAnnotations.out @@ -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 diff --git a/compiler/testData/cli/jvm/optInEmptyMessage.out b/compiler/testData/cli/jvm/optInEmptyMessage.out index 6154ea01794..a22d61d3ae7 100644 --- a/compiler/testData/cli/jvm/optInEmptyMessage.out +++ b/compiler/testData/cli/jvm/optInEmptyMessage.out @@ -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 diff --git a/compiler/testData/cli/jvm/optInEmptyMessageFir.out b/compiler/testData/cli/jvm/optInEmptyMessageFir.out index 5de583535fe..7a21a4d794a 100644 --- a/compiler/testData/cli/jvm/optInEmptyMessageFir.out +++ b/compiler/testData/cli/jvm/optInEmptyMessageFir.out @@ -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 diff --git a/compiler/testData/cli/jvm/optInOverrideMessage.out b/compiler/testData/cli/jvm/optInOverrideMessage.out index 4d4631f8618..95c325c01de 100644 --- a/compiler/testData/cli/jvm/optInOverrideMessage.out +++ b/compiler/testData/cli/jvm/optInOverrideMessage.out @@ -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 diff --git a/compiler/testData/cli/jvm/optInOverrideMessageFir.out b/compiler/testData/cli/jvm/optInOverrideMessageFir.out index c50eb6ec6e2..bcce519c07a 100644 --- a/compiler/testData/cli/jvm/optInOverrideMessageFir.out +++ b/compiler/testData/cli/jvm/optInOverrideMessageFir.out @@ -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 diff --git a/compiler/testData/cli/jvm/plugins/multiplePlugins.out b/compiler/testData/cli/jvm/plugins/multiplePlugins.out index acb5e5fa45e..88be26f0cae 100644 --- a/compiler/testData/cli/jvm/plugins/multiplePlugins.out +++ b/compiler/testData/cli/jvm/plugins/multiplePlugins.out @@ -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 diff --git a/compiler/testData/cli/jvm/progressiveModeOff.out b/compiler/testData/cli/jvm/progressiveModeOff.out index 6aa32675cda..42ab1623a93 100644 --- a/compiler/testData/cli/jvm/progressiveModeOff.out +++ b/compiler/testData/cli/jvm/progressiveModeOff.out @@ -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 { } - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/progressiveModeOn.out b/compiler/testData/cli/jvm/progressiveModeOn.out index 0870436a0fb..7a5816f2666 100644 --- a/compiler/testData/cli/jvm/progressiveModeOn.out +++ b/compiler/testData/cli/jvm/progressiveModeOn.out @@ -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 { } - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.out b/compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.out index 90532808d90..1b68b9f9bfb 100644 --- a/compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.out +++ b/compiler/testData/cli/jvm/readingConfigFromEnvironment/appendingArgs.out @@ -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 diff --git a/compiler/testData/cli/jvm/readingConfigFromEnvironment/overridingXx.out b/compiler/testData/cli/jvm/readingConfigFromEnvironment/overridingXx.out index b1da308e5ce..d7e63c7530b 100644 --- a/compiler/testData/cli/jvm/readingConfigFromEnvironment/overridingXx.out +++ b/compiler/testData/cli/jvm/readingConfigFromEnvironment/overridingXx.out @@ -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 diff --git a/compiler/testData/cli/jvm/recordAsSingleFileRoot.out b/compiler/testData/cli/jvm/recordAsSingleFileRoot.out index ff51700296c..8015fb5dca3 100644 --- a/compiler/testData/cli/jvm/recordAsSingleFileRoot.out +++ b/compiler/testData/cli/jvm/recordAsSingleFileRoot.out @@ -1,4 +1,4 @@ compiler/testData/cli/jvm/recordAsSingleFileRoot.kt:5:14: error: unresolved reference 'Unresolved'. fun error(): Unresolved? = null - ^ + ^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/requireKotlinCompilerVersion.out b/compiler/testData/cli/jvm/requireKotlinCompilerVersion.out index 92b61c4ccc4..10d576c3ba8 100644 --- a/compiler/testData/cli/jvm/requireKotlinCompilerVersion.out +++ b/compiler/testData/cli/jvm/requireKotlinCompilerVersion.out @@ -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 diff --git a/compiler/testData/cli/jvm/requireKotlinCompilerVersionK2.out b/compiler/testData/cli/jvm/requireKotlinCompilerVersionK2.out index 92b61c4ccc4..10d576c3ba8 100644 --- a/compiler/testData/cli/jvm/requireKotlinCompilerVersionK2.out +++ b/compiler/testData/cli/jvm/requireKotlinCompilerVersionK2.out @@ -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 diff --git a/compiler/testData/cli/jvm/returnAsWhenKey.out b/compiler/testData/cli/jvm/returnAsWhenKey.out index 00df6eda40b..86eebe44ed9 100644 --- a/compiler/testData/cli/jvm/returnAsWhenKey.out +++ b/compiler/testData/cli/jvm/returnAsWhenKey.out @@ -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 diff --git a/compiler/testData/cli/jvm/sanitized-name.clash.out b/compiler/testData/cli/jvm/sanitized-name.clash.out index 593928b006b..89de725ccf0 100644 --- a/compiler/testData/cli/jvm/sanitized-name.clash.out +++ b/compiler/testData/cli/jvm/sanitized-name.clash.out @@ -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 diff --git a/compiler/testData/cli/jvm/selfUpperBoundInference.out b/compiler/testData/cli/jvm/selfUpperBoundInference.out index cdd8941e43f..eeacb383e0d 100644 --- a/compiler/testData/cli/jvm/selfUpperBoundInference.out +++ b/compiler/testData/cli/jvm/selfUpperBoundInference.out @@ -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 to B return this as B - ^ + ^^^^ OK diff --git a/compiler/testData/cli/jvm/signatureClash.out b/compiler/testData/cli/jvm/signatureClash.out index 185ccf6ab9e..39bcf52887c 100644 --- a/compiler/testData/cli/jvm/signatureClash.out +++ b/compiler/testData/cli/jvm/signatureClash.out @@ -2,32 +2,32 @@ compiler/testData/cli/jvm/signatureClash.kt:6:5: error: accidental override: The fun ``(): 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 ``(): 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 ``(): 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 ``(): 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 ``(): 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 ``(): 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 diff --git a/compiler/testData/cli/jvm/singleJavaFileRoots.out b/compiler/testData/cli/jvm/singleJavaFileRoots.out index 8bbcacd986a..fb933f4a479 100644 --- a/compiler/testData/cli/jvm/singleJavaFileRoots.out +++ b/compiler/testData/cli/jvm/singleJavaFileRoots.out @@ -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 diff --git a/compiler/testData/cli/jvm/suspensionPointInMonitor.out b/compiler/testData/cli/jvm/suspensionPointInMonitor.out index 7ac7e9bcc4e..8ae88a72ae6 100644 --- a/compiler/testData/cli/jvm/suspensionPointInMonitor.out +++ b/compiler/testData/cli/jvm/suspensionPointInMonitor.out @@ -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 diff --git a/compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.out b/compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.out index 07b4eca498a..cd869902991 100644 --- a/compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.out +++ b/compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.out @@ -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, ``: 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`(``: Int): Unit defined in A fun `access$setFoo$cp`(d: Int): Unit defined in A fun `access$setFoo$cp`(d: Int) {} - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.out b/compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.out index e8a419dd6fb..061a2875706 100644 --- a/compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.out +++ b/compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.out @@ -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, ``: 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 diff --git a/compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.out b/compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.out index 23d913ac7b9..37b9efd3dea 100644 --- a/compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.out +++ b/compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.out @@ -1,7 +1,7 @@ compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.kt:11:1: error: class 'C' is not abstract and does not implement abstract member 'foo'. class C : I1, I2 -^ +^^^^^^^ compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.kt:11:1: error: 'C' inherits conflicting members: 'fun foo(): Unit' defined in 'test/I1', 'fun foo(): Unit' defined in 'test/I2'. class C : I1, I2 -^ -COMPILATION_ERROR \ No newline at end of file +^^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.out b/compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.out index fad479d396a..c1817a73f32 100644 --- a/compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.out +++ b/compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.out @@ -1,5 +1,5 @@ warning: API version 1.6 is deprecated and its support will be removed in a future version of Kotlin compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:2:15: error: this declaration needs opt-in. Its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)' Regex("").matchAt("123", 0) - ^ + ^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/werror.out b/compiler/testData/cli/jvm/werror.out index efb74bb7eba..05591732782 100644 --- a/compiler/testData/cli/jvm/werror.out +++ b/compiler/testData/cli/jvm/werror.out @@ -1,8 +1,8 @@ error: warnings found and -Werror specified compiler/testData/cli/jvm/werror.kt:2:13: warning: division by zero. println(a / 0) - ^ + ^^^^^ compiler/testData/cli/jvm/werror.kt:3:13: warning: division by zero. println(b / 0) - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/werrorWithNoWarn.out b/compiler/testData/cli/jvm/werrorWithNoWarn.out index efb74bb7eba..05591732782 100644 --- a/compiler/testData/cli/jvm/werrorWithNoWarn.out +++ b/compiler/testData/cli/jvm/werrorWithNoWarn.out @@ -1,8 +1,8 @@ error: warnings found and -Werror specified compiler/testData/cli/jvm/werror.kt:2:13: warning: division by zero. println(a / 0) - ^ + ^^^^^ compiler/testData/cli/jvm/werror.kt:3:13: warning: division by zero. println(b / 0) - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/jvm/wrongAbiVersion.out b/compiler/testData/cli/jvm/wrongAbiVersion.out index 7d1ae2c4724..43d093b5a9a 100644 --- a/compiler/testData/cli/jvm/wrongAbiVersion.out +++ b/compiler/testData/cli/jvm/wrongAbiVersion.out @@ -3,10 +3,10 @@ compiler/testData/cli/jvm/wrongAbiVersionLib/bin/META-INF/main.kotlin_module: er compiler/testData/cli/jvm/wrongAbiVersion.kt:3:12: error: class 'ClassWithWrongAbiVersion' was compiled with an incompatible version of Kotlin. The actual metadata version is 0.30.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TESTDATA_DIR$/wrongAbiVersionLib/bin/ClassWithWrongAbiVersion.class fun foo(x: ClassWithWrongAbiVersion) { - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/cli/jvm/wrongAbiVersion.kt:4:5: error: unresolved reference 'bar'. bar() - ^ + ^^^ compiler/testData/cli/jvm/wrongAbiVersion.kt:6:21: error: argument type mismatch: actual type is 'kotlin.Int', but 'kotlin.String' was expected. 1.replaceIndent(2, 3) ^ diff --git a/compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.out b/compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.out index 627f99c0e69..be45073a3cc 100644 --- a/compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.out +++ b/compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.out @@ -1,10 +1,10 @@ compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.kt:4:32: error: too many arguments for 'public constructor(): Anno'. class UnresolvedArgument(@Anno(BLA) val s: Int) - ^ + ^^^ compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.kt:4:32: error: unresolved reference 'BLA'. class UnresolvedArgument(@Anno(BLA) val s: Int) - ^ + ^^^ compiler/testData/cli/jvm/wrongAnnotationArgumentInCtor.kt:6:24: error: no value passed for parameter 'message'. class WithoutArguments(@Deprecated val s: Int) - ^ + ^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/metadata/getOrDefault.out b/compiler/testData/cli/metadata/getOrDefault.out index f2d237f4cd8..18abb0ba89f 100644 --- a/compiler/testData/cli/metadata/getOrDefault.out +++ b/compiler/testData/cli/metadata/getOrDefault.out @@ -1,4 +1,4 @@ compiler/testData/cli/metadata/getOrDefault.kt:2:38: error: unresolved reference 'getOrDefault'. fun foo(map: Map) = map.getOrDefault("", 0) - ^ + ^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/metadata/inheritorOfExpectSealedClass.out b/compiler/testData/cli/metadata/inheritorOfExpectSealedClass.out index 90efc1d1501..d84d2524e75 100644 --- a/compiler/testData/cli/metadata/inheritorOfExpectSealedClass.out +++ b/compiler/testData/cli/metadata/inheritorOfExpectSealedClass.out @@ -1,13 +1,13 @@ compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-1.kt:1:21: error: base: expect and corresponding actual are declared in the same module expect sealed class Base - ^ + ^^^^ compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-2.kt:1:21: error: 'actual class Base : Any' has no corresponding expected declaration actual sealed class Base - ^ + ^^^^ compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-2.kt:1:21: error: base: expect and corresponding actual are declared in the same module actual sealed class Base - ^ + ^^^^ compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-3.kt:1:17: error: unresolved reference ''. class Derived : Base() - ^ + ^^^^ COMPILATION_ERROR diff --git a/compiler/testData/cli/metadata/kotlinPackage.out b/compiler/testData/cli/metadata/kotlinPackage.out index 806c7c329f3..22784c0276b 100644 --- a/compiler/testData/cli/metadata/kotlinPackage.out +++ b/compiler/testData/cli/metadata/kotlinPackage.out @@ -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 diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.fir.txt index 5de5d66710d..680a9d3df63 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.fir.txt @@ -1,11 +1,11 @@ error: classes compiled by an unstable version of the Kotlin compiler were found in dependencies. Remove them from the classpath or use '-Xallow-unstable-dependencies' to suppress errors compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/source.kt:4:5: error: class 'lib.AKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.txt index 2f06bcf4fae..bd6738703d2 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/output.txt @@ -1,8 +1,8 @@ error: classes compiled by an unstable version of the Kotlin compiler were found in dependencies. Remove them from the classpath or use '-Xallow-unstable-dependencies' to suppress errors compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/source.kt:4:5: error: class 'lib.AKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler get { Box("OK").value } - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstFirWithUnstableAbi/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler get { Box("OK").value } - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.fir.txt index e5b5a5a7d34..7b05a0f76d4 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.fir.txt @@ -1,11 +1,11 @@ error: classes compiled by an unstable version of the Kotlin compiler were found in dependencies. Remove them from the classpath or use '-Xallow-unstable-dependencies' to suppress errors compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/source.kt:4:5: error: class 'lib.AKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler. get { Box("OK").value } - ^ + ^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.txt index c7ebc30d3da..223a130d491 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/output.txt @@ -1,8 +1,8 @@ error: classes compiled by an unstable version of the Kotlin compiler were found in dependencies. Remove them from the classpath or use '-Xallow-unstable-dependencies' to suppress errors compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/source.kt:4:5: error: class 'lib.AKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler get { Box("OK").value } - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/againstUnstable/source.kt:4:11: error: class 'lib.Box' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler get { Box("OK").value } - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.fir.txt index 60542d43f7f..ddadfe17920 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'val o3: Any': it is private in file. val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'val o7: Any': it is private in 'lib/W'. val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'val o10: Any': it is private in 'lib/O'. val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.txt index 174c604c79f..98158c0a338 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'o3': it is private in file val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'o7': it is private in 'W' val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadata/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'o10': it is private in 'O' val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.fir.txt index fa9d14139af..76d5f7202e5 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'val o3: Any': it is private in file. val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'val o7: Any': it is private in 'lib/W'. val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'val o10: Any': it is private in 'lib/O'. val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.txt index 716e70f42b9..b2fb41bd4f7 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'o3': it is private in file val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'o7': it is private in 'W' val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlib/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'o10': it is private in 'O' val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.fir.txt index 6d7cef86af6..acb0103c7fc 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.fir.txt @@ -1,11 +1,11 @@ warning: argument -Xexpect-actual-linker is deprecated. Please use -Xmetadata-klib instead compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'val o3: Any': it is private in file. val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'val o7: Any': it is private in 'lib/W'. val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'val o10: Any': it is private in 'lib/O'. val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.txt index e4651e8e662..4227ea08d6a 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/output.txt @@ -1,11 +1,11 @@ warning: argument -Xexpect-actual-linker is deprecated. Please use -Xmetadata-klib instead compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:11:10: error: cannot access 'o3': it is private in file val e1 = o3 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:12:12: error: cannot access 'o7': it is private in 'W' val e2 = w.o7 - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/anonymousObjectTypeMetadataKlibWithOldCLIKey/anonymousObjectTypeMetadata.kt:13:12: error: cannot access 'o10': it is private in 'O' val e3 = O.o10 - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.fir.txt index 5439d54c126..ff265f8108d 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/source.kt:4:10: error: unresolved reference 'methodWhichDoesNotExistInJdk'. Date.methodWhichDoesNotExistInJdk() - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.txt index 3a19e16519f..717704dce63 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/classFromJdkInLibrary/source.kt:4:10: error: unresolved reference: methodWhichDoesNotExistInJdk Date.methodWhichDoesNotExistInJdk() - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.fir.txt index 9ac8a2c9157..cef9301ac28 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/shouldNotCompile.kt:6:9: error: resolution to the classifier 'class TopLevelKt : Any' is not appropriate here. TopLevelKt() // error here - ^ + ^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.txt index 2b5540516f0..9abf14d3b7b 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/classfileWithoutConstructors/shouldNotCompile.kt:6:9: error: unresolved reference: TopLevelKt TopLevelKt() // error here - ^ + ^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.fir.txt index 904f9514b23..8079e2b3d2a 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.fir.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/source.kt:7:11: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. b.foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/source.kt:9:11: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. b.bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.txt index 7ebc04d7632..7bc3c6eabf5 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/source.kt:6:5: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies if (true) { - ^ + ^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/source.kt:7:11: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies b.foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/computeSupertypeWithMissingDependency/source.kt:9:11: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies b.bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/output.txt index f5cfab5d1f5..30604498897 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/output.txt @@ -1,15 +1,15 @@ compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/contextualDeclarationUse.kt:6:9: error: to use contextual declarations, specify the `-Xcontext-receivers` compiler option f() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/contextualDeclarationUse.kt:7:17: error: to use contextual declarations, specify the `-Xcontext-receivers` compiler option val a = A() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/contextualDeclarationUse.kt:8:11: error: to use contextual declarations, specify the `-Xcontext-receivers` compiler option a.p ^ compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/contextualDeclarationUse.kt:9:11: error: to use contextual declarations, specify the `-Xcontext-receivers` compiler option a.m() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/contextualDeclarationUse/contextualDeclarationUse.kt:10:9: error: to use contextual declarations, specify the `-Xcontext-receivers` compiler option p ^ diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.fir.txt index 94e54ae0872..0db544720aa 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.fir.txt @@ -1,34 +1,34 @@ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:4:14: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. class Client(val prop: T) - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:5:6: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. fun withTypeParam() {} - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:12:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. Sub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:12:11: error: unresolved reference 'unresolved'. Sub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:13:14: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. SubSub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:13:14: error: unresolved reference 'unresolved'. SubSub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:14:15: error: cannot access 'test.Super' which is a supertype of ''. Check your module classpath for missing or conflicting dependencies. val obj = object : Sub() {} - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:15:25: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. withCallRefArg(Sub::resolved) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:16:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. Sub().resolved() - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:17:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. Sub().extension() - ^ + ^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.txt index ea5ffd56f74..0b53cc6c6c0 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/output.txt @@ -4,35 +4,35 @@ Adding -Xextended-compiler-checks argument might provide additional information. compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:4:14: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies class Client(val prop: T) - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:5:6: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies fun withTypeParam() {} - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:12:11: error: unresolved reference: unresolved Sub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:12:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies Sub().unresolved() - ^ + ^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:13:14: error: unresolved reference: unresolved SubSub().unresolved() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:13:14: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies SubSub().unresolved() - ^ + ^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:14:15: error: cannot access 'test.Super' which is a supertype of 'test.'. Check your module classpath for missing or conflicting dependencies val obj = object : Sub() {} - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:15:25: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies withCallRefArg(Sub::resolved) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:16:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies Sub().resolved() - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyErrorPositions/source.kt:17:11: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies Sub().extension() - ^ + ^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.fir.txt index 89c1dc3022d..062eb520477 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:5:22: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. fun bar() = SubSub().foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:5:22: error: unresolved reference 'foo'. fun bar() = SubSub().foo() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.txt index 5c1236ca777..0e33315b366 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/output.txt @@ -4,11 +4,11 @@ Adding -Xextended-compiler-checks argument might provide additional information. compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:5:22: error: unresolved reference: foo fun bar() = SubSub().foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt:5:22: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies fun bar() = SubSub().foo() - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.fir.txt index f655b11ecdf..7afa1014431 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:5:22: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies. fun bar() = SubSub().foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:5:22: error: unresolved reference 'foo'. fun bar() = SubSub().foo() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.txt index 8171f0c3fed..e9f52ecd906 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/output.txt @@ -4,11 +4,11 @@ Adding -Xextended-compiler-checks argument might provide additional information. compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:3:1: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies class SubSub : Sub() -^ +^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:5:22: error: unresolved reference: foo fun bar() = SubSub().foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInKotlin/source.kt:5:22: error: cannot access 'test.Super' which is a supertype of 'SubSub'. Check your module classpath for missing or conflicting dependencies fun bar() = SubSub().foo() - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.fir.txt index 5a1b8287b5c..01af372f5c7 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/source.kt:6:16: error: cannot access 'test.Super' which is a supertype of 'test.SubClass'. Check your module classpath for missing or conflicting dependencies. SubClass().Inner() // Error - dispatch receiver misses supertype - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.txt index c6a2ae58a40..71adc67ca19 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/output.txt @@ -5,5 +5,5 @@ Adding -Xextended-compiler-checks argument might provide additional information. compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/source.kt:6:16: error: cannot access 'test.Super' which is a supertype of 'test.SubClass'. Check your module classpath for missing or conflicting dependencies SubClass().Inner() // Error - dispatch receiver misses supertype - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.fir.txt index 81c56497a52..fd0dea65079 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.fir.txt @@ -1,16 +1,16 @@ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:12:32: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. fun simpleFun(arg: Sub): Sub = Sub() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:19:18: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. val x: Sub = Sub() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:21:18: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. useCallRef(::Sub) - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:22:15: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. simpleFun(Sub()) - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:23:20: error: cannot access 'test.Super' which is a supertype of 'test.Sub'. Check your module classpath for missing or conflicting dependencies. inlineFun(Sub()) - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.txt index 2ff691d93aa..d45a91f178c 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/output.txt @@ -4,17 +4,17 @@ error: supertypes of the following classes cannot be resolved. Please make sure compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:12:32: error: cannot access 'test.Super' which is a supertype of 'Sub'. Check your module classpath for missing or conflicting dependencies fun simpleFun(arg: Sub): Sub = Sub() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:19:18: error: cannot access 'test.Super' which is a supertype of 'Sub'. Check your module classpath for missing or conflicting dependencies val x: Sub = Sub() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:21:18: error: cannot access 'test.Super' which is a supertype of 'Sub'. Check your module classpath for missing or conflicting dependencies useCallRef(::Sub) - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:22:15: error: cannot access 'test.Super' which is a supertype of 'Sub'. Check your module classpath for missing or conflicting dependencies simpleFun(Sub()) - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyWithExtendedCompilerChecks/source.kt:23:20: error: cannot access 'test.Super' which is a supertype of 'Sub'. Check your module classpath for missing or conflicting dependencies inlineFun(Sub()) - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/output.txt index a55bdb09fd0..9fa2d7c40f8 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/source.kt:10:9: error: unresolved reference: Nested val v3: Nested? = null - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/source.kt:11:18: error: unresolved reference: Nested val v4: test.Foo.Nested? = null - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/innerClassPackageConflict2/source.kt:14:18: error: unresolved reference: Nested val v6: test.Boo.Nested? = null - ^ -COMPILATION_ERROR \ No newline at end of file + ^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.fir.txt index 7c5d52ba784..91b0bb762d2 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.fir.txt @@ -1,19 +1,19 @@ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:3:21: error: cannot access 'interface InternalInterface : Any': it is internal in file. private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:3:41: error: cannot access 'typealias InternalTypealias = InternalInterface': it is internal in file. private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:4:19: error: cannot access 'fun internalMemberFun(): Unit': it is internal in 'a/PublicClass'. PublicClass().internalMemberFun() - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:5:17: error: cannot access 'companion object Companion : Any': it is internal in 'a/PublicClass'. PublicClass.Companion - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:7:5: error: cannot access 'fun internalFun(s: String): String': it is internal in file. internalFun(internalVal) - ^ + ^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:7:17: error: cannot access 'val internalVal: String': it is internal in file. internalFun(internalVal) - ^ + ^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.txt index f90b62b7f62..b53ca26ac38 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/output.txt @@ -1,19 +1,19 @@ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:3:21: error: cannot access 'InternalInterface': it is internal in 'a' private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:3:41: error: cannot access 'InternalTypealias': it is internal in 'a' private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:4:19: error: cannot access 'internalMemberFun': it is internal in 'PublicClass' PublicClass().internalMemberFun() - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:5:17: error: cannot access 'Companion': it is internal in 'PublicClass' PublicClass.Companion - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:7:5: error: cannot access 'internalFun': it is internal in 'a' internalFun(internalVal) - ^ + ^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModule/source.kt:7:17: error: cannot access 'internalVal': it is internal in 'a' internalFun(internalVal) - ^ + ^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/output.txt index 60c41e56eb2..529b6824c45 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/output.txt @@ -1,19 +1,19 @@ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:3:21: error: cannot access 'InternalInterface': it is internal in 'a' private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:3:41: error: cannot access 'InternalTypealias': it is internal in 'a' private fun test(i: InternalInterface): InternalTypealias { - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:4:19: error: cannot access 'internalMemberFun': it is internal in 'PublicClass' PublicClass().internalMemberFun() - ^ + ^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:5:17: error: cannot access 'Companion': it is internal in 'PublicClass' PublicClass.Companion - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:7:5: error: cannot access 'internalFun': it is internal in 'a' internalFun(internalVal) - ^ + ^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/internalFromForeignModuleJs/source.kt:7:17: error: cannot access 'internalVal': it is internal in 'a' internalFun(internalVal) - ^ + ^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithNoCompatibility/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithNoCompatibility/output.txt index 214d55e8787..c9e7e4ca4da 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithNoCompatibility/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithNoCompatibility/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithNoCompatibility/source.kt:12:7: error: explicit override is required for 'public open fun evaluate(): Any? defined in KotlinEvaluatableUElement' in the '-Xjvm-default=all-compatibility' mode. Otherwise, implicit class override 'public open fun evaluate(): Any? defined in KotlinAbstractUExpression' (compiled in the old -Xjvm-default mode) is not fully overridden and would be incorrectly called at runtime class KotlinUBinaryExpressionWithType : KotlinAbstractUExpression(), KotlinEvaluatableUElement {} - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/output.txt index d537fc93db0..2eb1d696565 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/output.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/source.kt:15:7: error: explicit override is required for 'public open var test: String defined in SubCheck' in the '-Xjvm-default=all' mode. Otherwise, implicit class override 'public open var test: String defined in base.CheckClass' (compiled in the old -Xjvm-default mode) is not fully overridden and would be incorrectly called at runtime class SubCheckClass : CheckClass(), SubCheck - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultClashWithOld/source.kt:15:7: error: explicit override is required for 'public open fun test(): String defined in SubCheck' in the '-Xjvm-default=all' mode. Otherwise, implicit class override 'public open fun test(): String defined in base.CheckClass' (compiled in the old -Xjvm-default mode) is not fully overridden and would be incorrectly called at runtime class SubCheckClass : CheckClass(), SubCheck - ^ + ^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.fir.txt index 27339102367..5d98b269fce 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/source.kt:5:22: error: interfaces can only call JVM-default members via super within JVM-default members. Please use '-Xjvm-default=all/all-compatibility' modes for such calls. return super.evaluate() - ^ + ^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.txt index 3608fad8cc5..cde3467fe81 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/source.kt:5:22: error: interfaces can call JVM-default members via super only within JVM-default members. Please use '-Xjvm-default=all/all-compatibility' modes for such calls return super.evaluate() - ^ + ^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.fir.txt index 84898b6858c..1e79a035e1b 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.fir.txt @@ -1,25 +1,25 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:7:8: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:7:20: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:8:8: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceAGeneric("foo")) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:8:20: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceAGeneric("foo")) - ^ + ^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:12:8: error: cannot access class 'a.AA.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeAA(b1.produceAA()) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:12:21: error: cannot access class 'a.AA.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeAA(b1.produceAA()) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:16:8: error: cannot access class 'a.AAA.Inner.InnerInner'. Check your module classpath for missing or conflicting dependencies. b2.consumeAAA(b1.produceAAA()) - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:16:22: error: cannot access class 'a.AAA.Inner.InnerInner'. Check your module classpath for missing or conflicting dependencies. b2.consumeAAA(b1.produceAAA()) - ^ + ^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.txt index 080a7472762..23369a44dad 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/output.txt @@ -1,34 +1,34 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:7:8: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:7:17: error: type mismatch: inferred type is A.Inner but A.Inner was expected b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:7:20: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:8:8: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceAGeneric("foo")) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:8:17: error: type mismatch: inferred type is A.Inner but A.Inner was expected b2.consumeA(b1.produceAGeneric("foo")) - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:8:20: error: cannot access class 'a.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceAGeneric("foo")) - ^ + ^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:12:8: error: cannot access class 'a.AA.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeAA(b1.produceAA()) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:12:18: error: type mismatch: inferred type is AA.Inner but AA.Inner was expected b2.consumeAA(b1.produceAA()) - ^ + ^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:12:21: error: cannot access class 'a.AA.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeAA(b1.produceAA()) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:16:8: error: cannot access class 'a.AAA.Inner.InnerInner'. Check your module classpath for missing or conflicting dependencies b2.consumeAAA(b1.produceAAA()) - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyConflictingLibraries/source.kt:16:22: error: cannot access class 'a.AAA.Inner.InnerInner'. Check your module classpath for missing or conflicting dependencies b2.consumeAAA(b1.produceAAA()) - ^ + ^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.fir.txt index 2c002207a5b..2b924554e25 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:6:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. b.returnType() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:7:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. b.parameter(null) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:8:10: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. null.extensionReceiver() - ^ + ^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.txt index 954d65f09e6..598cc08e90a 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:6:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies b.returnType() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:7:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies b.parameter(null) - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyDifferentCases/source.kt:8:10: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies null.extensionReceiver() - ^ -COMPILATION_ERROR \ No newline at end of file + ^^^^^^^^^^^^^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.fir.txt index a43be1685ae..2ae8e951887 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.fir.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:4:17: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies. val bar = f.getBar() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:5: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies. bar.bar() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:9: error: unresolved reference 'bar'. bar.bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.txt index e1ce619c2b9..0c094490a88 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:4:17: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies val bar = f.getBar() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:5: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies bar.bar() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:9: error: unresolved reference: bar bar.bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.fir.txt index 22888e2ae43..5ade9a254fc 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.fir.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/source.kt:4:8: error: cannot access class 'test.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/source.kt:4:20: error: cannot access class 'test.A.Inner'. Check your module classpath for missing or conflicting dependencies. b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.txt index 64d38fb4475..5af645fd7da 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/output.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/source.kt:4:8: error: cannot access class 'test.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJavaConflictingLibraries/source.kt:4:20: error: cannot access class 'test.A.Inner'. Check your module classpath for missing or conflicting dependencies b2.consumeA(b1.produceA()) - ^ + ^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.fir.txt index cc50110b59a..07bab0bb531 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.fir.txt @@ -1,13 +1,13 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:7:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. b.foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:10:21: error: initializer type mismatch: expected 'kotlin.String', actual 'a.A'. val x: String = b.foo() - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:10:21: error: type mismatch: inferred type is 'a.A', but 'kotlin.String' was expected. val x: String = b.foo() - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:10:23: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies. val x: String = b.foo() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.txt index 88ad824dedd..e13629bd442 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/output.txt @@ -1,10 +1,10 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:7:7: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies b.foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:10:21: error: type mismatch: inferred type is A but String was expected val x: String = b.foo() - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt:10:23: error: cannot access class 'a.A'. Check your module classpath for missing or conflicting dependencies val x: String = b.foo() - ^ -COMPILATION_ERROR \ No newline at end of file + ^^^ +COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.fir.txt index 61534056553..eb89a79c3a8 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/source.kt:4:15: error: cannot access class 'test.C.D'. Check your module classpath for missing or conflicting dependencies. val c = C.makeD() - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.txt index 0194603c11f..1e8371ad1a8 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/missingStaticClass/source.kt:4:15: error: cannot access class 'test.C.D'. Check your module classpath for missing or conflicting dependencies val c = C.makeD() - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.fir.txt index 515887bc2d7..292517f06be 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.fir.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/main.kt:6:10: error: unresolved reference 'Outer$Nested'. test.`Outer$Nested`() - ^ + ^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/main.kt:9:10: error: unresolved reference 'JavaOuter$JavaNested'. test.`JavaOuter$JavaNested`() - ^ + ^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.txt index a30225ddf39..e2cdacfb9f6 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/output.txt @@ -1,7 +1,7 @@ compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/main.kt:6:10: error: unresolved reference: `Outer$Nested` test.`Outer$Nested`() - ^ + ^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/prohibitNestedClassesByDollarName/main.kt:9:10: error: unresolved reference: `JavaOuter$JavaNested` test.`JavaOuter$JavaNested`() - ^ + ^^^^^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.fir.txt index c6255a28bff..f3692a006dc 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/source.kt:8:28: error: unresolved reference 'method'. val methodCall = param.method() - ^ + ^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.txt index 2511c5c8695..87961103417 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibrary/source.kt:8:28: error: unresolved reference: method val methodCall = param.method() - ^ + ^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.fir.txt index d09f8eb4b59..6b40d333822 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.fir.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/source.kt:8:28: error: unresolved reference 'method'. val methodCall = param.method() - ^ + ^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.txt index ba61076168f..23b37606014 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/output.txt @@ -1,4 +1,4 @@ compiler/testData/compileKotlinAgainstCustomBinaries/releaseCompilerAgainstPreReleaseLibraryJs/source.kt:8:28: error: unresolved reference: method val methodCall = param.method() - ^ + ^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/output.txt index dbff9ecda7b..073919e1c8c 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/output.txt @@ -9,13 +9,13 @@ fun test(a: A): TA { ^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/source.kt:3:17: error: 'typealias TA = String' is only available since Kotlin 42.33 and cannot be used in Kotlin 1.9. This declaration is only supported since Kotlin 42.33 fun test(a: A): TA { - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/source.kt:3:17: error: 'typealias TA = String' is only available since Kotlin 40.34 and cannot be used in Kotlin 1.9 fun test(a: A): TA { - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/source.kt:3:17: error: 'typealias TA = String' is only available since Kotlin 45.35 and cannot be used in Kotlin 1.9 fun test(a: A): TA { - ^ + ^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlin/source.kt:4:5: error: 'f(): Unit' is only available since Kotlin 42.33 and cannot be used in Kotlin 1.9. This declaration is only supported since Kotlin 42.33 f() ^ diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/output.txt index 7e00aafa38b..2cef427a97b 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/output.txt @@ -1,6 +1,6 @@ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/source.kt:3:19: error: 'Nested' is only available since Kotlin 2.44 and cannot be used in Kotlin 1.9 fun test(a: Outer.Nested) { - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClasses/source.kt:4:7: error: 'f(): Unit' is only available since Kotlin 2.88 and cannot be used in Kotlin 1.9 a.f() ^ diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/output.txt index aea2c4bc48a..2dd074f7f86 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/output.txt @@ -1,6 +1,6 @@ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/source.kt:3:19: error: 'Nested' is only available since Kotlin 2.44 and cannot be used in Kotlin 1.9 fun test(a: Outer.Nested) { - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesAgainst14Js/source.kt:4:7: error: 'f(): Unit' is only available since Kotlin 2.88 and cannot be used in Kotlin 1.9 a.f() ^ diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/output.txt index 4cac4269b82..6d6b6fdf946 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/output.txt @@ -1,6 +1,6 @@ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/source.kt:3:19: error: 'Nested' is only available since Kotlin 1.44 and cannot be used in Kotlin 1.9 fun test(a: Outer.Nested) { - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/requireKotlinInNestedClassesJs/source.kt:4:7: error: 'f(): Unit' is only available since Kotlin 1.88 and cannot be used in Kotlin 1.9 a.f() ^ diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.fir.txt index 73cdf86bc41..a9d4ccce0f9 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.fir.txt @@ -10,8 +10,8 @@ compiler or generated code. Use it at your own risk! compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/main.kt:5:11: error: extending sealed classes or interfaces from a different module is prohibited. class B : Base(), IBase - ^ + ^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/main.kt:5:19: error: extending sealed classes or interfaces from a different module is prohibited. class B : Base(), IBase - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.txt index 242942dc732..76b60a85903 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/output.txt @@ -10,8 +10,8 @@ compiler or generated code. Use it at your own risk! compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/main.kt:5:11: error: inheritance of sealed classes or interfaces from different module is prohibited class B : Base(), IBase - ^ + ^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/sealedInheritorInDifferentModule/main.kt:5:19: error: inheritance of sealed classes or interfaces from different module is prohibited class B : Base(), IBase - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/output.txt index bc9a9a9b703..ec7214fb22f 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/output.txt @@ -17,9 +17,9 @@ The class is loaded from $TMP_DIR$/library.jar!/a/C.class compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/source.kt:6:11: error: class 'a.C' was compiled with an incompatible version of Kotlin. The actual metadata version is $ABI_VERSION_NEXT$, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION$. The class is loaded from $TMP_DIR$/library.jar!/a/C.class c.let { C() } - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/strictMetadataVersionSemanticsOldVersion/source.kt:6:13: error: class 'a.C' was compiled with an incompatible version of Kotlin. The actual metadata version is $ABI_VERSION_NEXT$, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION$. The class is loaded from $TMP_DIR$/library.jar!/a/C.class c.let { C() } - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/output.txt index e5f08789d19..258ae328f93 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/output.txt @@ -1,55 +1,55 @@ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:6:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineFun {} - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:7:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineGetter - ^ + ^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:8:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineGetter = 1 - ^ + ^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:11:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineSetter = 1 - ^ + ^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:13:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option allInline - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:14:5: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option allInline = 1 - ^ + ^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:17:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.inlineFunBase {} - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:18:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.inlineGetterBase - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:19:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.inlineGetterBase = 1 - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:22:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.inlineSetterBase = 1 - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:24:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.allInlineBase - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:25:10: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option base.allInlineBase = 1 - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:32:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineFunBase {} - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:33:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineGetterBase - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:34:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineGetterBase = 1 - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:37:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option inlineSetterBase = 1 - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:39:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option allInlineBase - ^ + ^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:40:9: error: cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option allInlineBase = 1 - ^ + ^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.fir.txt index c8b51b84162..167fa3a3d23 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.fir.txt @@ -7,37 +7,37 @@ fun baz(param: A, nested: A.Nested) { compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:5:27: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class fun baz(param: A, nested: A.Nested) { - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:6:23: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val constructor = A() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:7:18: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class val nested = A.Nested() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:9:30: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:11:13: error: unresolved reference 'foo'. val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:12:13: error: unresolved reference 'bar'. val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:13:5: error: unresolved reference 'bar'. bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:14:12: error: unresolved reference 'TA'. val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.txt index c83c16453dc..2283ad1c0d9 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/output.txt @@ -11,7 +11,7 @@ fun baz(param: A, nested: A.Nested) { compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:5:29: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class fun baz(param: A, nested: A.Nested) { - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:6:23: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val constructor = A() @@ -23,25 +23,25 @@ The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:7:20: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class val nested = A.Nested() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:9:30: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:11:13: error: unresolved reference: foo val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:12:13: error: unresolved reference: bar val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:13:5: error: unresolved reference: bar bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:14:12: error: unresolved reference: TA val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.fir.txt index 97bb71b8eb2..890da1f0362 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.fir.txt @@ -13,23 +13,23 @@ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMeta ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:8:22: error: unresolved reference 'getQuux'. val quux = param.getQuux() - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:9:28: error: unresolved reference 'method'. val methodCall = param.method() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:10:30: error: unresolved reference 'A'. val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:12:13: error: unresolved reference 'foo'. val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:13:13: error: unresolved reference 'bar'. val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:14:5: error: unresolved reference 'bar'. bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:15:12: error: unresolved reference 'TA'. val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.txt index 5494c86a096..c90a0563ce7 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/output.txt @@ -1,14 +1,14 @@ $TMP_DIR$/library-after.jar!/META-INF/main.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 42.0.0, expected version is $ABI_VERSION$. compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:12:13: error: unresolved reference: foo val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:13:13: error: unresolved reference: bar val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:14:5: error: unresolved reference: bar bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata/source.kt:15:12: error: unresolved reference: TA val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.fir.txt index 573c3857479..f1e26729c4d 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.fir.txt @@ -13,23 +13,23 @@ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMeta ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:8:22: error: unresolved reference 'getQuux'. val quux = param.getQuux() - ^ + ^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:9:28: error: unresolved reference 'method'. val methodCall = param.method() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:10:30: error: unresolved reference 'A'. val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:12:13: error: unresolved reference 'foo'. val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:13:13: error: unresolved reference 'bar'. val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:14:5: error: unresolved reference 'bar'. bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:15:12: error: unresolved reference 'TA'. val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.txt index 85dd303abb4..4adeed4c5e4 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/output.txt @@ -1,14 +1,14 @@ $TMP_DIR$/library-after.jar!/META-INF/main.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 42.0.0, expected version is $ABI_VERSION$. compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:12:13: error: unresolved reference: foo val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:13:13: error: unresolved reference: bar val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:14:5: error: unresolved reference: bar bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionBadMetadata2/source.kt:15:12: error: unresolved reference: TA val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.fir.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.fir.txt index d4af4526a4a..3d9a87164fe 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.fir.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.fir.txt @@ -7,37 +7,37 @@ fun baz(param: A, nested: A.Nested) { compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:5:27: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class fun baz(param: A, nested: A.Nested) { - ^ + ^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:6:23: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val constructor = A() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:7:18: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class val nested = A.Nested() - ^ + ^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^^^^^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:9:30: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:11:13: error: unresolved reference 'foo'. val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:12:13: error: unresolved reference 'bar'. val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:13:5: error: unresolved reference 'bar'. bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:14:12: error: unresolved reference 'TA'. val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.txt index 9e5a0161842..683e4a7343d 100644 --- a/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.txt +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/output.txt @@ -11,7 +11,7 @@ fun baz(param: A, nested: A.Nested) { compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:5:29: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class fun baz(param: A, nested: A.Nested) { - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:6:23: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val constructor = A() @@ -23,25 +23,25 @@ The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:7:20: error: class 'a.A.Nested' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A$Nested.class val nested = A.Nested() - ^ + ^^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:8:22: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val methodCall = param.method() - ^ + ^^^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:9:30: error: class 'a.A' was compiled with an incompatible version of Kotlin. The actual metadata version is 42.0.0, but the compiler version $ABI_VERSION$ can read versions up to $ABI_VERSION_NEXT$. The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class val supertype = object : A() {} ^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:11:13: error: unresolved reference: foo val x = foo() - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:12:13: error: unresolved reference: bar val y = bar - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:13:5: error: unresolved reference: bar bar = 239 - ^ + ^^^ compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersionSkipPrereleaseCheckHasNoEffect/source.kt:14:12: error: unresolved reference: TA val z: TA = "" - ^ + ^^ COMPILATION_ERROR diff --git a/compiler/testData/diagnostics/tests/classObjects/invisibleClassObjects.diag.txt b/compiler/testData/diagnostics/tests/classObjects/invisibleClassObjects.diag.txt index ee589d65bdd..b3dba3ebab5 100644 --- a/compiler/testData/diagnostics/tests/classObjects/invisibleClassObjects.diag.txt +++ b/compiler/testData/diagnostics/tests/classObjects/invisibleClassObjects.diag.txt @@ -6,7 +6,7 @@ import a.B.Companion.bar ^ /b.kt:37:12: error: cannot access 'Companion': it is private in 'C' import a.C.Companion.baz - ^ + ^^^^^^^^^ /b.kt:38:10: error: cannot access 'D': it is private in file import a.D ^ @@ -15,7 +15,7 @@ import a.D.Companion.quux ^ /b.kt:39:12: error: cannot access 'Companion': it is private in 'D' import a.D.Companion.quux - ^ + ^^^^^^^^^ /b.kt:43:7: error: cannot access 'B': it is private in file f(B) ^ @@ -30,17 +30,17 @@ import a.D.Companion.quux ^ /b.kt:48:7: error: cannot access 'B': it is private in file B.bar() - ^ + ^^^ /b.kt:49:7: error: cannot access 'Companion': it is private in 'C' C.baz() - ^ + ^^^ /b.kt:50:5: error: cannot access 'D': it is private in file D.quux() ^ /b.kt:50:7: error: cannot access 'Companion': it is private in 'D' D.quux() - ^ + ^^^^ /b.kt:53:9: error: cannot access 'Companion': it is private in 'C' a.C.baz() - ^ + ^^^ diff --git a/compiler/testData/diagnostics/tests/deprecated/deprecatedError.diag.txt b/compiler/testData/diagnostics/tests/deprecated/deprecatedError.diag.txt index 9919679f4ae..42b0bc085f4 100644 --- a/compiler/testData/diagnostics/tests/deprecated/deprecatedError.diag.txt +++ b/compiler/testData/diagnostics/tests/deprecated/deprecatedError.diag.txt @@ -3,11 +3,11 @@ fun test(c: C) { ^ /deprecatedError.kt:15:5: error: using 'foo(String): Unit' is an error. alas foo("") - ^ + ^^^ /deprecatedError.kt:16:5: error: using 'C' is an error. alas C() ^ /deprecatedError.kt:17:5: error: using 'bar: Int' is an error. alas bar - ^ + ^^^ diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/contextReceiverAmbiguity.diag.txt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/contextReceiverAmbiguity.diag.txt index 81e5a8e17ea..e036b95cb83 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/contextReceiverAmbiguity.diag.txt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/contextReceiverAmbiguity.diag.txt @@ -1,5 +1,6 @@ -/contextReceiverAmbiguity.kt:13:9: error: overload resolution ambiguity: +/contextReceiverAmbiguity.kt:13:9: error: overload resolution ambiguity: context(String) public fun foo(x: Comparable<*>): Unit defined in root package in file contextReceiverAmbiguity.kt context(String) public fun foo(x: Number): Unit defined in root package in file contextReceiverAmbiguity.kt foo(1) - ^ + ^^^ + diff --git a/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.diag.txt b/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.diag.txt index d997ff7a7e1..70a2591924b 100644 --- a/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.diag.txt +++ b/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.diag.txt @@ -1,3 +1,4 @@ /test.kt:26:9: warning: ambiguous access to property 'first.KtNodeTypes.SOME' is deprecated because similar enum entry 'second.SomeEnum.SOME' is available. Please add explicit named import or use fully qualified name SOME -> true - ^ + ^^^^ + diff --git a/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity3.diag.txt b/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity3.diag.txt index d997ff7a7e1..70a2591924b 100644 --- a/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity3.diag.txt +++ b/compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity3.diag.txt @@ -1,3 +1,4 @@ /test.kt:26:9: warning: ambiguous access to property 'first.KtNodeTypes.SOME' is deprecated because similar enum entry 'second.SomeEnum.SOME' is available. Please add explicit named import or use fully qualified name SOME -> true - ^ + ^^^^ + diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Default.diag.txt b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Default.diag.txt index 2b5596f4c33..87659fa5376 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Default.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Default.diag.txt @@ -1,4 +1,4 @@ /kt47986Default.kt:9:13: warning: type parameter for a type argument K can't be inferred into declared upper bounds. Please provide any use-site type information. It will become an error in future releases. val x = buildFoo { - ^ + ^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Disabled.diag.txt b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Disabled.diag.txt index 6435912d7c2..58184e65399 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Disabled.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986Disabled.diag.txt @@ -1,4 +1,4 @@ /kt47986Disabled.kt:10:13: warning: type parameter for a type argument K can't be inferred into declared upper bounds. Please provide any use-site type information. It will become an error in future releases. val x = buildFoo { - ^ + ^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_2.diag.txt b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_2.diag.txt index 013f5c8c28a..b7c4dcd751d 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_2.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_2.diag.txt @@ -1,4 +1,4 @@ /kt47986_2.kt:11:13: warning: type parameter for a type argument K can't be inferred into declared upper bounds. Please provide any use-site type information. It will become an error in future releases. val x = buildFoo { // can't infer - ^ + ^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_3.diag.txt b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_3.diag.txt index e0c8f57c7df..a6e1495347b 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_3.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/kt47986_3.diag.txt @@ -1,4 +1,4 @@ /kt47986_3.kt:9:13: warning: type parameter for a type argument K can't be inferred into declared upper bounds. Please provide any use-site type information. It will become an error in future releases. val x = buildFoo { - ^ + ^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/builderInference/kt51464.diag.txt b/compiler/testData/diagnostics/tests/inference/builderInference/kt51464.diag.txt index ec8f6c7021d..486a49cdd9f 100644 --- a/compiler/testData/diagnostics/tests/inference/builderInference/kt51464.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/builderInference/kt51464.diag.txt @@ -1,4 +1,4 @@ /kt51464.kt:12:15: warning: type parameter for a type argument R can't be inferred into declared upper bounds. Please provide any use-site type information. It will become an error in future releases. flowOf(1).transform { doEmit(this) } - ^ + ^^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461.diag.txt index 6190e8ae5c2..09c436ff6e0 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461.diag.txt @@ -1,4 +1,4 @@ /kt45461.kt:12:19: warning: type argument for a type parameter S can't be inferred because it has incompatible upper bounds: String, Int (multiple incompatible classes). This will become an error in Kotlin 2.0 Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_12.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_12.diag.txt index 04a4bfc1e25..cd9d7b937c6 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_12.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_12.diag.txt @@ -1,4 +1,4 @@ /kt45461_12.kt:14:19: warning: type argument for a type parameter S can't be inferred because it has incompatible upper bounds: String, K (multiple incompatible classes: String, Number). This will become an error in Kotlin 2.0 Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_2.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_2.diag.txt index 72de14b46cd..0b235c951cc 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_2.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_2.diag.txt @@ -1,7 +1,7 @@ /kt45461_2.kt:10:10: warning: 'Int' is a final type, and thus a value of the type parameter is predetermined fun main() { - ^ + ^^^ /kt45461_2.kt:12:19: warning: type argument for a type parameter S can't be inferred because it has incompatible upper bounds: String, K (multiple incompatible classes: String, Int). This will become an error in Kotlin 2.0 Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_25.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_25.diag.txt index 8d1445c204f..a335a3e356e 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_25.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_25.diag.txt @@ -1,10 +1,10 @@ /kt45461_25.kt:11:20: error: type mismatch: inferred type is {K & String} but Float was expected val x: Float = Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^ /kt45461_25.kt:11:34: error: type argument for a type parameter S can't be inferred because it has incompatible upper bounds: String, K (multiple incompatible classes: String, Int) val x: Float = Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ /kt45461_25.kt:11:34: error: type mismatch: inferred type is {K & String} but Float was expected val x: Float = Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_26.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_26.diag.txt index 9c51e4ca1b6..ef8473655e6 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_26.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_26.diag.txt @@ -1,6 +1,7 @@ /kt45461_26.kt:13:25: error: type mismatch: inferred type is {K & Out} but Out was expected val x: Out = Bar>().takeFoo(foo) - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /kt45461_26.kt:13:44: error: type mismatch: inferred type is {K & Out} but Out was expected val x: Out = Bar>().takeFoo(foo) - ^ + ^^^^^^^ + diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_5.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_5.diag.txt index fb86fe9c348..9aedfb3f4ed 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_5.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt45461_5.diag.txt @@ -1,4 +1,4 @@ /kt45461_5.kt:12:19: warning: type argument for a type parameter S can't be inferred because it has incompatible upper bounds: String, K (multiple incompatible classes: String, Number). This will become an error in Kotlin 2.0 Bar().takeFoo(foo) // error in 1.3.72, no error in 1.4.31 - ^ + ^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48765.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48765.diag.txt index c000fa04666..316d4a87af8 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48765.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48765.diag.txt @@ -1,10 +1,10 @@ /kt48765.kt:10:13: warning: type argument for a type parameter T can't be inferred because it has incompatible upper bounds: String, Number (multiple incompatible classes). This will become an error in Kotlin 2.0 B().foo(x, foo()) - ^ + ^^^ /kt48765.kt:14:9: warning: 'String' is a final type, and thus a value of the type parameter is predetermined fun foo(): T { - ^ + ^^^^^^ /kt48765.kt:15:15: warning: unchecked cast: String to T return "" as T // this cast is safe because String is final. - ^ + ^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48935.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48935.diag.txt index 5dea8d76fca..93fc6c93117 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48935.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/kt48935.diag.txt @@ -1,4 +1,4 @@ /kt48935.kt:13:5: warning: type argument for a type parameter T has possible incompatible upper bounds: Base, DoesNotImplementBase (final class and interface) exampleGenericFunction(func) // expected this to be a compilation error as the T: Base constraint should not be satisfied - ^ + ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.diag.txt b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.diag.txt index 941a69be451..ad3c923f672 100644 --- a/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.diag.txt +++ b/compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.diag.txt @@ -1,4 +1,4 @@ /selectFromCovariantAndContravariantTypes.kt:17:5: warning: type argument for a type parameter V can't be inferred because it has incompatible upper bounds: A, B (multiple incompatible classes). This will become an error in Kotlin 2.0 genericIn(select(a, b)) - ^ + ^^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/inline/nonPublicMember/kt55179.diag.txt b/compiler/testData/diagnostics/tests/inline/nonPublicMember/kt55179.diag.txt index f000028697e..18df1965731 100644 --- a/compiler/testData/diagnostics/tests/inline/nonPublicMember/kt55179.diag.txt +++ b/compiler/testData/diagnostics/tests/inline/nonPublicMember/kt55179.diag.txt @@ -1,6 +1,7 @@ /kt55179.kt:16:5: error: non-private inline function cannot access members of private classes: 'public constructor Foo() defined in Foo' Foo() - ^ + ^^^ /kt55179.kt:17:9: error: non-private inline function cannot access members of private classes: 'public companion object defined in Foo' Foo.Companion - ^ + ^^^^^^^^^ + diff --git a/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinNullableWarnings.diag.txt b/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinNullableWarnings.diag.txt index bbf835e066e..b86877fc886 100644 --- a/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinNullableWarnings.diag.txt +++ b/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinNullableWarnings.diag.txt @@ -1,15 +1,16 @@ /main.kt:22:11: warning: type parameter 'V' has nullable upper bounds while non-nullable version is expected. This warning will become an error soon. See https://youtrack.jetbrains.com/issue/KT-36770 for details takeV(value) - ^ + ^^^^^ /main.kt:23:15: warning: type parameter 'V' has nullable upper bounds while non-nullable version is expected. This warning will become an error soon. See https://youtrack.jetbrains.com/issue/KT-36770 for details takeVList(l) ^ /main.kt:25:11: warning: type parameter 'V' has nullable upper bounds while non-nullable version is expected. This warning will become an error soon. See https://youtrack.jetbrains.com/issue/KT-36770 for details takeE(value) - ^ + ^^^^^ /main.kt:26:15: warning: type parameter 'V' has nullable upper bounds while non-nullable version is expected. This warning will become an error soon. See https://youtrack.jetbrains.com/issue/KT-36770 for details takeEList(l) ^ /main.kt:27:11: warning: type parameter 'V' has nullable upper bounds while non-nullable version is expected. This warning will become an error soon. See https://youtrack.jetbrains.com/issue/KT-36770 for details takeE(id(value)) - ^ + ^^^^^^^^^ + diff --git a/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.diag.txt b/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.diag.txt index 2c35f13f993..537860f2c72 100644 --- a/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.diag.txt +++ b/compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.diag.txt @@ -1,13 +1,13 @@ /main.kt:23:5: warning: type parameter 'X' has nullable upper bound, so override has incorrect signature comparing with a base member with NotNull annotation. Please add a non-nullable upper bound (e.g. Any) to the type parameter. See https://kotlinlang.org/docs/generics.html#upper-bounds and https://youtrack.jetbrains.com/issue/KT-36770 for more details. This warning will become an error soon. override fun takeV(x: X) - ^ + ^^^^^^^^ /main.kt:24:5: warning: type parameter 'E1' has nullable upper bound, so override has incorrect signature comparing with a base member with NotNull annotation. Please add a non-nullable upper bound (e.g. Any) to the type parameter. See https://kotlinlang.org/docs/generics.html#upper-bounds and https://youtrack.jetbrains.com/issue/KT-36770 for more details. This warning will become an error soon. override fun takeE(e: E1) - ^ + ^^^^^^^^ /main.kt:26:5: warning: type parameter 'X' has nullable upper bound, so override has incorrect signature comparing with a base member with NotNull annotation. Please add a non-nullable upper bound (e.g. Any) to the type parameter. See https://kotlinlang.org/docs/generics.html#upper-bounds and https://youtrack.jetbrains.com/issue/KT-36770 for more details. This warning will become an error soon. override fun takeVList(l: List) - ^ + ^^^^^^^^ /main.kt:27:5: warning: type parameter 'E2' has nullable upper bound, so override has incorrect signature comparing with a base member with NotNull annotation. Please add a non-nullable upper bound (e.g. Any) to the type parameter. See https://kotlinlang.org/docs/generics.html#upper-bounds and https://youtrack.jetbrains.com/issue/KT-36770 for more details. This warning will become an error soon. override fun takeEList(l2: List) - ^ + ^^^^^^^^ diff --git a/compiler/testData/diagnostics/tests/javac/Lambda.diag.txt b/compiler/testData/diagnostics/tests/javac/Lambda.diag.txt index 60807823caf..02c5f2be1dc 100644 --- a/compiler/testData/diagnostics/tests/javac/Lambda.diag.txt +++ b/compiler/testData/diagnostics/tests/javac/Lambda.diag.txt @@ -7,4 +7,5 @@ // -- Module: -- /Call.kt:90:19: error: unresolved reference: result fun simple(b: com.result.B<*>) {} - ^ + ^^^^^^ + diff --git a/compiler/testData/diagnostics/tests/javac/LambdaNonGeneric.diag.txt b/compiler/testData/diagnostics/tests/javac/LambdaNonGeneric.diag.txt index 0fc930fbdb9..1424e9fe067 100644 --- a/compiler/testData/diagnostics/tests/javac/LambdaNonGeneric.diag.txt +++ b/compiler/testData/diagnostics/tests/javac/LambdaNonGeneric.diag.txt @@ -5,5 +5,5 @@ // -- Module: -- /m3.kt:24:17: error: unresolved reference: Some foo { some: Some, _ -> } - ^ + ^^^^ diff --git a/compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/checkDiagnosticFullText.diag.txt b/compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/checkDiagnosticFullText.diag.txt index 1a1a2e2dbf8..5d6637e3ef4 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/checkDiagnosticFullText.diag.txt +++ b/compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/checkDiagnosticFullText.diag.txt @@ -4,32 +4,33 @@ /jvm.kt:48:14: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `class OnClass defined in root package in file common.kt` must be present with the same arguments on actual `class OnClass defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual class OnClass - ^ + ^^^^^^^ /jvm.kt:51:16: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `fun onMember(): Unit defined in OnMember` must be present with the same arguments on actual `fun onMember(): Unit defined in OnMember`, otherwise they might behave incorrectly. actual fun onMember() {} - ^ + ^^^^^^^^ /jvm.kt:56:18: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `class ViaTypealias defined in root package in file common.kt` must be present with the same arguments on actual `class ViaTypealiasImpl defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual typealias ViaTypealias = ViaTypealiasImpl - ^ + ^^^^^^^^^^^^ /jvm.kt:61:18: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `fun foo(): Unit defined in MemberScopeViaTypealias` must be present with the same arguments on actual `fun foo(): Unit defined in MemberScopeViaTypealiasImpl`, otherwise they might behave incorrectly. actual typealias MemberScopeViaTypealias = MemberScopeViaTypealiasImpl - ^ + ^^^^^^^^^^^^^^^^^^^^^^^ /jvm.kt:64:12: warning: annotation `@WithArg(s = "str")` has different arguments on actual declaration: `@WithArg(s = "other str")`. All annotations from expect `fun withDifferentArg(): Unit defined in root package in file common.kt` must be present with the same arguments on actual `fun withDifferentArg(): Unit defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual fun withDifferentArg() {} - ^ + ^^^^^^^^^^^^^^^^ /jvm.kt:66:12: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `fun inValueParam(arg: String): Unit defined in root package in file common.kt` must be present with the same arguments on actual `fun inValueParam(arg: String): Unit defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual fun inValueParam(arg: String) {} - ^ + ^^^^^^^^^^^^ /jvm.kt:68:16: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `fun inTypeParam(): Unit defined in root package in file common.kt` must be present with the same arguments on actual `fun inTypeParam(): Unit defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual fun inTypeParam() {} - ^ + ^^^^^^^^^^^ /jvm.kt:70:12: warning: annotation `@Ann` is missing on actual declaration. All annotations from expect `val onGetter: String defined in root package in file common.kt` must be present with the same arguments on actual `val onGetter: String defined in root package in file jvm.kt`, otherwise they might behave incorrectly. actual val onGetter: String = "" - ^ + ^^^^^^^^ + diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/unresolvedOperator.diag.txt b/compiler/testData/diagnostics/tests/operatorsOverloading/unresolvedOperator.diag.txt index 849598461fd..499455695ac 100644 --- a/compiler/testData/diagnostics/tests/operatorsOverloading/unresolvedOperator.diag.txt +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/unresolvedOperator.diag.txt @@ -1,9 +1,9 @@ /unresolvedOperator.kt:6:6: error: unresolved reference: ++ a++ - ^ + ^^ /unresolvedOperator.kt:7:6: error: unresolved reference: -- a-- - ^ + ^^ /unresolvedOperator.kt:8:5: error: unresolved reference: + +a ^ @@ -16,7 +16,7 @@ /unresolvedOperator.kt:11:7: error: unresolved reference: * a * a ^ -/unresolvedOperator.kt:12:10: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: +/unresolvedOperator.kt:12:10: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public operator fun String?.plus(other: Any?): String defined in kotlin true + false ^ @@ -31,7 +31,8 @@ public operator fun String?.plus(other: Any?): String defined in kotlin ^ /unresolvedOperator.kt:16:7: error: unresolved reference: .. a .. a - ^ + ^^ /unresolvedOperator.kt:17:7: error: unresolved reference: ..< a ..< a - ^ + ^^^ + diff --git a/compiler/testData/diagnostics/tests/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.diag.txt b/compiler/testData/diagnostics/tests/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.diag.txt index ef0a171a36d..0f413698181 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.diag.txt +++ b/compiler/testData/diagnostics/tests/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.diag.txt @@ -6,5 +6,5 @@ ^ /B.kt:23:9: warning: smart cast to 'String' is deprecated, because 'i.x' is a property declared in base class from different module inherited in non-public API class i.x.length - ^ + ^^^ diff --git a/compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.diag.txt b/compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.diag.txt index 27d6dcf5ce2..29066f282ec 100644 --- a/compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.diag.txt +++ b/compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.diag.txt @@ -1,49 +1,49 @@ /newListMethods.kt:13:18: warning: this declaration overrides deprecated member but not marked as deprecated itself. Please add @Deprecated annotation or suppress. See https://youtrack.jetbrains.com/issue/KT-47902 for details override fun getFirst(): T = super.getFirst() - ^ + ^^^^^^^^ /newListMethods.kt:13:40: warning: 'getFirst(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead override fun getFirst(): T = super.getFirst() - ^ + ^^^^^^^^ /newListMethods.kt:14:18: warning: this declaration overrides deprecated member but not marked as deprecated itself. Please add @Deprecated annotation or suppress. See https://youtrack.jetbrains.com/issue/KT-47902 for details override fun getLast(): T = super.getLast() - ^ + ^^^^^^^ /newListMethods.kt:14:39: warning: 'getLast(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead override fun getLast(): T = super.getLast() - ^ + ^^^^^^^ /newListMethods.kt:25:7: warning: 'getFirst(): E!' is deprecated. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead x.getFirst() - ^ + ^^^^^^^^ /newListMethods.kt:26:7: warning: 'getter for first: E!' is deprecated. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead x.first // synthetic property for getFirst() - ^ + ^^^^^ /newListMethods.kt:28:7: warning: 'getLast(): E!' is deprecated. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead x.getLast() - ^ + ^^^^^^^ /newListMethods.kt:29:7: warning: 'getter for last: E!' is deprecated. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead x.last - ^ + ^^^^ /newListMethods.kt:37:7: warning: 'getFirst(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead y.getFirst() - ^ + ^^^^^^^^ /newListMethods.kt:38:7: warning: 'getFirst(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead y.first - ^ + ^^^^^ /newListMethods.kt:40:7: warning: 'getLast(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead y.getLast() - ^ + ^^^^^^^ /newListMethods.kt:41:7: warning: 'getLast(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead y.last - ^ + ^^^^ /newListMethods.kt:49:7: warning: 'getFirst(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead z.getFirst() - ^ + ^^^^^^^^ /newListMethods.kt:50:7: warning: 'getFirst(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead z.first - ^ + ^^^^^ /newListMethods.kt:52:7: warning: 'getLast(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead z.getLast() - ^ + ^^^^^^^ /newListMethods.kt:53:7: warning: 'getLast(): E!' is deprecated. Overrides deprecated member in 'java.util.AbstractList'. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead z.last - ^ + ^^^^ diff --git a/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference.diag.txt index 2bc19155f43..5084c38d472 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference.diag.txt @@ -1,4 +1,4 @@ /inconsistentTypeInference.kt:7:17: error: constraint error in receiver type argument: inferred type is String but Int was expected println(plus(1)[0]) - ^ + ^^^^ diff --git a/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference2.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference2.diag.txt index ae8a2a0cbc4..2ce74828d85 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference2.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/builderInference/inconsistentTypeInference2.diag.txt @@ -1,3 +1,4 @@ /inconsistentTypeInference2.kt:7:17: error: type mismatch: inferred type is String but Int was expected println(this.plus(1)[0]) - ^ + ^^^^ + diff --git a/compiler/testData/diagnostics/testsWithStdLib/builderInference/upperBoundViolation.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/builderInference/upperBoundViolation.diag.txt index 377e0ac3601..87816273264 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/builderInference/upperBoundViolation.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/builderInference/upperBoundViolation.diag.txt @@ -1,4 +1,4 @@ /upperBoundViolation.kt:9:9: error: upper bound violation for generic parameter `T` of `printGenericNumber`: String is not a subtype of Number printGenericNumber(this[0]) - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspensionPointInMonitorNewInf.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspensionPointInMonitorNewInf.diag.txt index e1f45f85de0..22831775a90 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspensionPointInMonitorNewInf.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspensionPointInMonitorNewInf.diag.txt @@ -1,18 +1,19 @@ /suspensionPointInMonitorNewInf.kt:19:13: error: the 'suspensionPoint' suspension point is inside a critical section suspensionPoint() - ^ + ^^^^^^^^^^^^^^^ /suspensionPointInMonitorNewInf.kt:23:13: error: the 'suspensionPoint' suspension point is inside a critical section suspensionPoint() - ^ + ^^^^^^^^^^^^^^^ /suspensionPointInMonitorNewInf.kt:26:30: error: the 'suspensionPoint' suspension point is inside a critical section synchronized(lock, { suspensionPoint() }) - ^ + ^^^^^^^^^^^^^^^ /suspensionPointInMonitorNewInf.kt:38:13: error: the 'suspensionPoint' suspension point is inside a critical section suspensionPoint() - ^ + ^^^^^^^^^^^^^^^ /suspensionPointInMonitorNewInf.kt:45:9: error: the 'suspensionPoint' suspension point is inside a critical section suspensionPoint() - ^ + ^^^^^^^^^^^^^^^ /suspensionPointInMonitorNewInf.kt:54:45: error: the 'returnsInt' suspension point is inside a critical section return@synchronized 1 + returnsInt() - ^ + ^^^^^^^^^^ + diff --git a/compiler/testData/diagnostics/testsWithStdLib/labelClashes.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/labelClashes.diag.txt index ccfda0778d6..d2c9ddafe73 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/labelClashes.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/labelClashes.diag.txt @@ -1,16 +1,16 @@ /labelClashes.kt:5:13: warning: this label is now resolved to 'function with' but soon it will be resolved to the closest 'anonymous function'. Please consider introducing or changing explicit label name this@with.inc() - ^ + ^^^^^ /labelClashes.kt:11:13: warning: this label is now resolved to 'function bar' but soon it will be resolved to the closest 'anonymous function'. Please consider introducing or changing explicit label name this@bar.inc() - ^ + ^^^^ /labelClashes.kt:20:17: warning: this label is now resolved to 'class with' but soon it will be resolved to the closest 'anonymous function'. Please consider introducing or changing explicit label name this@with.foo() - ^ + ^^^^^ /labelClashes.kt:24:17: warning: this label is now resolved to 'class with' but soon it will be resolved to the closest 'anonymous function'. Please consider introducing or changing explicit label name this@with.foo() - ^ + ^^^^^ /labelClashes.kt:37:13: warning: this label is now resolved to 'class TypedThis' but soon it will be resolved to the closest 'function baz extension receiver'. Please consider introducing or changing explicit label name this@TypedThis - ^ + ^^^^^^^^^^ diff --git a/compiler/testData/diagnostics/testsWithStdLib/labelClashesWithContextReceivers.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/labelClashesWithContextReceivers.diag.txt index 0ce0154ba4f..eec80ed6334 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/labelClashesWithContextReceivers.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/labelClashesWithContextReceivers.diag.txt @@ -1,7 +1,7 @@ /labelClashesWithContextReceivers.kt:8:13: warning: this label is now resolved to 'class Some' but soon it will be resolved to the closest 'function foo context receiver'. Please consider introducing or changing explicit label name this@Some - ^ + ^^^^^ /labelClashesWithContextReceivers.kt:14:21: warning: this label is now resolved to 'class Some' but soon it will be resolved to the closest 'property self context receiver'. Please consider introducing or changing explicit label name get() = this@Some - ^ + ^^^^^ diff --git a/compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.diag.txt b/compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.diag.txt index 15002ab1036..6072851c5d0 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.diag.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.diag.txt @@ -1,3 +1,4 @@ /upperBoundViolated2.kt:4:15: warning: type argument is not within its bounds: 'List' should be subtype of 'List'. This warning will become an error in K2 val a = Alias() // Also should be error - ^ + ^^^ + diff --git a/compiler/testData/integration/ant/jvm/doNotFailOnError/build.log.expected b/compiler/testData/integration/ant/jvm/doNotFailOnError/build.log.expected index 7e2f6f2f7c7..5208d26e538 100644 --- a/compiler/testData/integration/ant/jvm/doNotFailOnError/build.log.expected +++ b/compiler/testData/integration/ant/jvm/doNotFailOnError/build.log.expected @@ -5,36 +5,36 @@ build: [javac] Compiling 2 source files to [Temp] [javac] Compiling [[TestData]] => [[Temp]] [javac] [TestData]/incorrectKotlinCode.kt:4:1: error: parameter name expected - [javac] + [javac] [javac] ^ [javac] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting comma or ')' - [javac] + [javac] [javac] ^ [javac] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting ')' - [javac] + [javac] [javac] ^ [javac] [TestData]/incorrectKotlinCode.kt:4:1: error: a type annotation is required on a value parameter. - [javac] + [javac] [javac] ^ [javac] [TestData]/incorrectKotlinCode.kt:3:1: error: function 'main' must have a body. [javac] fun main( - [javac] ^ + [javac] ^^^^^^^^^ [kotlinc] Compiling [[TestData]] => [[Temp]] [kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: parameter name expected - [kotlinc] + [kotlinc] [kotlinc] ^ [kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting comma or ')' - [kotlinc] + [kotlinc] [kotlinc] ^ [kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting ')' - [kotlinc] + [kotlinc] [kotlinc] ^ [kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: a type annotation is required on a value parameter. - [kotlinc] + [kotlinc] [kotlinc] ^ [kotlinc] [TestData]/incorrectKotlinCode.kt:3:1: error: function 'main' must have a body. [kotlinc] fun main( - [kotlinc] ^ + [kotlinc] ^^^^^^^^^ BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/jvm/failOnErrorByDefault/build.log.expected b/compiler/testData/integration/ant/jvm/failOnErrorByDefault/build.log.expected index 55348522df3..11bda38e835 100644 --- a/compiler/testData/integration/ant/jvm/failOnErrorByDefault/build.log.expected +++ b/compiler/testData/integration/ant/jvm/failOnErrorByDefault/build.log.expected @@ -5,7 +5,7 @@ build: [kotlinc] Compiling [[TestData]] => [[Temp]] [kotlinc] [TestData]/incorrectKotlinCode.kt:1:1: error: expecting a top level declaration [kotlinc] xxxx - [kotlinc] ^ + [kotlinc] ^^^^ ERR: diff --git a/compiler/testData/integration/ant/jvm/forkOnError/build.log.expected b/compiler/testData/integration/ant/jvm/forkOnError/build.log.expected index 7d722c1a4c6..b3bffe57237 100644 --- a/compiler/testData/integration/ant/jvm/forkOnError/build.log.expected +++ b/compiler/testData/integration/ant/jvm/forkOnError/build.log.expected @@ -11,17 +11,17 @@ build: [kotlinc] -Xmx128m [kotlinc] warning: ATTENTION! [kotlinc] This build uses unsafe internal compiler arguments: - [kotlinc] + [kotlinc] [kotlinc] -XXLanguage:+EnableDfaWarningsInK2 - [kotlinc] + [kotlinc] [kotlinc] This mode is not recommended for production use, [kotlinc] as no stability/compatibility guarantees are given on [kotlinc] compiler or generated code. Use it at your own risk! - [kotlinc] + [kotlinc] [kotlinc] error: warnings found and -Werror specified [kotlinc] [TestData]/test.kt:4:15: warning: this cast can never succeed. [kotlinc] println(0 as String) - [kotlinc] ^ + [kotlinc] ^^ ERR: diff --git a/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected b/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected index 35101d591ce..e414a17a104 100644 --- a/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected +++ b/compiler/testData/integration/ant/jvm/languageVersion/build.log.expected @@ -6,7 +6,7 @@ build: [kotlinc] warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin [kotlinc] [TestData]/main.kt:1:15: error: suspend function type is allowed as a supertype only since version 1.6 [kotlinc] interface A : suspend () -> Unit - [kotlinc] ^ + [kotlinc] ^^^^^^^^^^^^^^^^^^ ERR: diff --git a/compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/build.log.expected b/compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/build.log.expected index 1dcfa7d93de..f3652135c3b 100644 --- a/compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/build.log.expected +++ b/compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/build.log.expected @@ -7,13 +7,13 @@ build: [javac] Compiling [[TestData]] => [[Temp]/classes] [javac] [TestData]/literals.kt:9:9: error: overload resolution ambiguity between candidates: [fun intArrayOf(vararg elements: IntArray): IntArray, fun intArrayOf(vararg elements: IntArray): IntArray] [javac] @AnnInt(intArrayOf(1, 2)) - [javac] ^ + [javac] ^^^^^^^^^^ [javac] [TestData]/myArrayOf.kt:3:1: error: conflicting overloads: [fun intArrayOf(vararg elements: IntArray): IntArray] [javac] public fun intArrayOf(vararg elements: Int): IntArray = TODO() - [javac] ^ + [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] [TestData]/myArrayOf.kt:4:1: error: conflicting overloads: [fun intArrayOf(vararg elements: IntArray): IntArray] [javac] public fun intArrayOf(vararg elements: Int): IntArray = TODO() - [javac] ^ + [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERR: diff --git a/compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/build.log.expected b/compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/build.log.expected index 6e9ab39825d..a9d67549b8e 100644 --- a/compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/build.log.expected +++ b/compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/build.log.expected @@ -7,7 +7,7 @@ build: [javac] Compiling [[TestData]] => [[Temp]/classes] [javac] [TestData]/literals.kt:5:11: warning: this code uses error suppression for 'UNSUPPORTED_FEATURE'. 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 [javac] @Suppress("UNSUPPORTED_FEATURE") - [javac] ^ + [javac] ^^^^^^^^^^^^^^^^^^^^^ [javac] Running javac... [jar] Building jar: [Temp]/literals.jar diff --git a/compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/build.log.expected b/compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/build.log.expected index a1eba7a6e39..d6b56695d4e 100644 --- a/compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/build.log.expected +++ b/compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/build.log.expected @@ -7,10 +7,10 @@ build: [javac] Compiling [[TestData]] => [[Temp]/classes] [javac] [TestData]/literals.kt:6:9: error: argument type mismatch: actual type is 'kotlin.FloatArray', but 'kotlin.IntArray' was expected. [javac] @AnnInt([1, 2]) - [javac] ^ + [javac] ^^^^^^ [javac] [TestData]/literals.kt:9:9: error: argument type mismatch: actual type is 'kotlin.FloatArray', but 'kotlin.IntArray' was expected. [javac] @AnnInt(intArrayOf(1, 2)) - [javac] ^ + [javac] ^^^^^^^^^^^^^^^^ ERR: diff --git a/compiler/testData/integration/smoke/noReflect/noReflect.compile.expected b/compiler/testData/integration/smoke/noReflect/noReflect.compile.expected index 9a336b339da..18ee4facca6 100644 --- a/compiler/testData/integration/smoke/noReflect/noReflect.compile.expected +++ b/compiler/testData/integration/smoke/noReflect/noReflect.compile.expected @@ -1,6 +1,7 @@ + ERR: noReflect.kt:5:23: warning: call uses reflection API which is not found in compilation classpath. Make sure you have kotlin-reflect.jar in the classpath. String::class.annotations - ^ + ^^^^^^^^^^^ Return code: 0 diff --git a/compiler/testData/integration/smoke/syntaxErrors/test.compile.expected b/compiler/testData/integration/smoke/syntaxErrors/test.compile.expected index d3770b56d63..432fc50629a 100644 --- a/compiler/testData/integration/smoke/syntaxErrors/test.compile.expected +++ b/compiler/testData/integration/smoke/syntaxErrors/test.compile.expected @@ -2,9 +2,9 @@ ERR: test.kt:4:13: error: classifier 'class System : Any' does not have a companion object, so it cannot be used as an expression. val s = System.in - ^ + ^^^^^^ test.kt:4:20: error: syntax error: Expecting an element. val s = System.in - ^ + ^^ Return code: 1 diff --git a/compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage.txt b/compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage.txt index 812dcd5eba8..beb38d7d616 100644 --- a/compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage.txt +++ b/compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage.txt @@ -1,4 +1,4 @@ compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage/Test.kt:1:28: error: symbol is declared in module 'jdk.internal.jvmstat' which does not export package 'sun.jvmstat.monitor' val z: sun.jvmstat.monitor.Monitor? = null - ^ + ^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/coroutinesDebugMetadata/usage.fir.txt b/compiler/testData/javaModules/coroutinesDebugMetadata/usage.fir.txt index 234542b7a23..a87d7beb98e 100644 --- a/compiler/testData/javaModules/coroutinesDebugMetadata/usage.fir.txt +++ b/compiler/testData/javaModules/coroutinesDebugMetadata/usage.fir.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/coroutinesDebugMetadata/usage/usage.kt:1:16: warning: this code uses error suppression for 'INVISIBLE_REFERENCE'. 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 @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "CANNOT_OVERRIDE_INVISIBLE_MEMBER") - ^ + ^^^^^^^^^^^^^^^^^^^^^ compiler/testData/javaModules/coroutinesDebugMetadata/usage/usage.kt:1:59: warning: this code uses error suppression for 'CANNOT_OVERRIDE_INVISIBLE_MEMBER'. 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 @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "CANNOT_OVERRIDE_INVISIBLE_MEMBER") - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OK diff --git a/compiler/testData/javaModules/jdkModulesFromNamed/main.fir.txt b/compiler/testData/javaModules/jdkModulesFromNamed/main.fir.txt index 083a8d4cf2e..ae15b65e571 100644 --- a/compiler/testData/javaModules/jdkModulesFromNamed/main.fir.txt +++ b/compiler/testData/javaModules/jdkModulesFromNamed/main.fir.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:11:18: error: unresolved reference 'swing'. val s: javax.swing.JFrame? = null - ^ + ^^^^^ compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity between candidates: [@InlineOnly() fun println(message: Any?): Unit, @InlineOnly() fun println(message: Boolean): Unit, @InlineOnly() fun println(message: Byte): Unit, ...] println(s) - ^ + ^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/jdkModulesFromNamed/main.txt b/compiler/testData/javaModules/jdkModulesFromNamed/main.txt index 4c027da3f77..27cbcf9a97d 100644 --- a/compiler/testData/javaModules/jdkModulesFromNamed/main.txt +++ b/compiler/testData/javaModules/jdkModulesFromNamed/main.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:11:18: error: unresolved reference: swing val s: javax.swing.JFrame? = null - ^ -compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity: + ^^^^^ +compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity: public inline fun println(message: Any?): Unit defined in kotlin.io public inline fun println(message: Boolean): Unit defined in kotlin.io public inline fun println(message: Byte): Unit defined in kotlin.io @@ -13,5 +13,5 @@ public inline fun println(message: Int): Unit defined in kotlin.io public inline fun println(message: Long): Unit defined in kotlin.io public inline fun println(message: Short): Unit defined in kotlin.io println(s) - ^ + ^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/releaseFlag/moduleSwing.fir.txt b/compiler/testData/javaModules/releaseFlag/moduleSwing.fir.txt index b554d93da2f..a9ce2d3e6b2 100644 --- a/compiler/testData/javaModules/releaseFlag/moduleSwing.fir.txt +++ b/compiler/testData/javaModules/releaseFlag/moduleSwing.fir.txt @@ -1,4 +1,4 @@ compiler/testData/javaModules/releaseFlag/moduleSwing/foo/Foo.kt:5:18: error: unresolved reference 'swing'. val z: javax.swing.JFrame? = null - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/releaseFlag/moduleSwing.txt b/compiler/testData/javaModules/releaseFlag/moduleSwing.txt index a7fce1d9ab4..9d7ace5fb2a 100644 --- a/compiler/testData/javaModules/releaseFlag/moduleSwing.txt +++ b/compiler/testData/javaModules/releaseFlag/moduleSwing.txt @@ -1,4 +1,4 @@ compiler/testData/javaModules/releaseFlag/moduleSwing/foo/Foo.kt:5:18: error: unresolved reference: swing val z: javax.swing.JFrame? = null - ^ + ^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/severalModulesWithTheSameName/main.fir.txt b/compiler/testData/javaModules/severalModulesWithTheSameName/main.fir.txt index 7be623ba534..264b0afedd3 100644 --- a/compiler/testData/javaModules/severalModulesWithTheSameName/main.fir.txt +++ b/compiler/testData/javaModules/severalModulesWithTheSameName/main.fir.txt @@ -1,11 +1,11 @@ $TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:2:8: error: unresolved reference 'bar'. import bar.Bar - ^ + ^^^ compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:12: error: unresolved reference 'Bar'. val b: Bar = Bar() - ^ + ^^^ compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:18: error: unresolved reference 'Bar'. val b: Bar = Bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/severalModulesWithTheSameName/main.txt b/compiler/testData/javaModules/severalModulesWithTheSameName/main.txt index b7eb53eb17e..3dd6c08992b 100644 --- a/compiler/testData/javaModules/severalModulesWithTheSameName/main.txt +++ b/compiler/testData/javaModules/severalModulesWithTheSameName/main.txt @@ -1,11 +1,11 @@ $TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:2:8: error: unresolved reference: bar import bar.Bar - ^ + ^^^ compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:12: error: unresolved reference: Bar val b: Bar = Bar() - ^ + ^^^ compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:18: error: unresolved reference: Bar val b: Bar = Bar() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB.txt b/compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB.txt index a5c1fd42798..09d92b5ad06 100644 --- a/compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB.txt +++ b/compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB.txt @@ -1,4 +1,4 @@ compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB/usage.kt:8:9: error: symbol is declared in module 'moduleA' which does not export package 'a.impl' val a3: AImpl = A.getInstance() - ^ -COMPILATION_ERROR \ No newline at end of file + ^^^^^ +COMPILATION_ERROR diff --git a/compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB.txt b/compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB.txt index 1e784e235b8..ce612ac7981 100644 --- a/compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB.txt +++ b/compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB.txt @@ -1,10 +1,10 @@ compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:2:19: error: symbol is declared in module 'moduleA' which does not export package 'unexported' import unexported.Unexported - ^ + ^^^^^^^^^^ compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:9:5: error: symbol is declared in module 'moduleA' which does not export package 'unexported' Unexported() - ^ + ^^^^^^^^^^ compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:13:5: error: unresolved reference: Unrelated Unrelated() - ^ + ^^^^^^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/unnamedDependsOnNamed/moduleB.txt b/compiler/testData/javaModules/unnamedDependsOnNamed/moduleB.txt index aab6a2c0ce1..a27fd5c578e 100644 --- a/compiler/testData/javaModules/unnamedDependsOnNamed/moduleB.txt +++ b/compiler/testData/javaModules/unnamedDependsOnNamed/moduleB.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/unnamedDependsOnNamed/moduleB/usage.kt:2:17: error: symbol is declared in module 'moduleA' which does not export package 'foo.impl' import foo.impl.Impl - ^ + ^^^^ compiler/testData/javaModules/unnamedDependsOnNamed/moduleB/usage.kt:7:5: error: symbol is declared in module 'moduleA' which does not export package 'foo.impl' Impl() // should be error - ^ + ^^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.fir.txt b/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.fir.txt index 308f41d9c60..a18119a6029 100644 --- a/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.fir.txt +++ b/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.fir.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:1:8: error: unresolved reference 'foo'. import foo.Foo - ^ + ^^^ compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:4:5: error: unresolved reference 'Foo'. Foo() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.txt b/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.txt index ccb611253d8..7a4f7bc0937 100644 --- a/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.txt +++ b/compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB.txt @@ -1,7 +1,7 @@ compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:1:8: error: unresolved reference: foo import foo.Foo - ^ + ^^^ compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:4:5: error: unresolved reference: Foo Foo() - ^ + ^^^ COMPILATION_ERROR diff --git a/compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/output.txt b/compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/output.txt index 1fcf790b857..0dd47a97152 100644 --- a/compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/output.txt +++ b/compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/output.txt @@ -13,10 +13,10 @@ compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt actual constructor(s: Array): Foo actual class Foo { - ^ + ^^^ compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt:2:5: error: 'actual constructor(s: Array): Foo' has no corresponding expected declaration The following declaration is incompatible because parameter types are different: expect constructor(s: String): Foo actual constructor(s: Array) - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/output.txt b/compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/output.txt index 5817f0895ea..50d639ce74d 100644 --- a/compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/output.txt +++ b/compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/output.txt @@ -10,10 +10,10 @@ The following declaration is incompatible because some entries from expected enu expect enum class AB : Enum actual enum class AB { A, C } - ^ + ^^ compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/jvm.kt:3:19: error: 'actual enum class CD : Enum' has no corresponding expected declaration The following declaration is incompatible because some entries from expected enum are missing in the actual enum: expect enum class CD : Enum actual enum class CD { C } - ^ + ^^ diff --git a/compiler/testData/multiplatform/classScopes/fakeOverrides/output.txt b/compiler/testData/multiplatform/classScopes/fakeOverrides/output.txt index a05b038471d..3f335ff994b 100644 --- a/compiler/testData/multiplatform/classScopes/fakeOverrides/output.txt +++ b/compiler/testData/multiplatform/classScopes/fakeOverrides/output.txt @@ -7,13 +7,13 @@ Exit code: OK Output: compiler/testData/multiplatform/classScopes/fakeOverrides/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 open class Base { -^ +^^^^^^ compiler/testData/multiplatform/classScopes/fakeOverrides/common.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 Derived : Base { -^ +^^^^^^ compiler/testData/multiplatform/classScopes/fakeOverrides/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 open class Base { -^ +^^^^^^ compiler/testData/multiplatform/classScopes/fakeOverrides/jvm.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 actual class Derived : Base() { -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/output.txt b/compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/output.txt index 872152bfbd7..89be4114549 100644 --- a/compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/output.txt +++ b/compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/output.txt @@ -13,10 +13,10 @@ compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm. actual fun bar(): String actual class Foo { - ^ + ^^^ compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm.kt:4:16: error: 'actual fun bar(): String' has no corresponding expected declaration The following declaration is incompatible because callable kinds are different (function vs property): expect val bar: String actual fun bar(): String = "" - ^ + ^^^ diff --git a/compiler/testData/multiplatform/classScopes/functionIncorrectSignature/output.txt b/compiler/testData/multiplatform/classScopes/functionIncorrectSignature/output.txt index cb1857c85ce..6bdd387870d 100644 --- a/compiler/testData/multiplatform/classScopes/functionIncorrectSignature/output.txt +++ b/compiler/testData/multiplatform/classScopes/functionIncorrectSignature/output.txt @@ -10,4 +10,4 @@ The following declaration is incompatible because return type is different: expect fun function(b: ByteArray): Int actual fun function(b: ByteArray): Long = b.size.toLong() - ^ + ^^^^^^^^ diff --git a/compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass/output.txt b/compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass/output.txt index 393a89914f3..6b9d4b387e8 100644 --- a/compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass/output.txt +++ b/compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass/output.txt @@ -13,4 +13,4 @@ compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperc fun function(b: ByteArray): Long actual class Foo : Base() - ^ + ^^^ diff --git a/compiler/testData/multiplatform/classScopes/missingConstructor/output.txt b/compiler/testData/multiplatform/classScopes/missingConstructor/output.txt index 7a94bfe0ab1..ee2363c6e8a 100644 --- a/compiler/testData/multiplatform/classScopes/missingConstructor/output.txt +++ b/compiler/testData/multiplatform/classScopes/missingConstructor/output.txt @@ -13,4 +13,4 @@ compiler/testData/multiplatform/classScopes/missingConstructor/jvm.kt:1:14: erro constructor(): Foo actual class Foo - ^ + ^^^ diff --git a/compiler/testData/multiplatform/classScopes/missingFunction/output.txt b/compiler/testData/multiplatform/classScopes/missingFunction/output.txt index de64adcfc81..26b89676a49 100644 --- a/compiler/testData/multiplatform/classScopes/missingFunction/output.txt +++ b/compiler/testData/multiplatform/classScopes/missingFunction/output.txt @@ -10,4 +10,4 @@ compiler/testData/multiplatform/classScopes/missingFunction/jvm.kt:1:14: error: expect fun function(s: String): Unit actual class Foo - ^ + ^^^ diff --git a/compiler/testData/multiplatform/classScopes/simple/output.txt b/compiler/testData/multiplatform/classScopes/simple/output.txt index a6ab5bce142..e340f567005 100644 --- a/compiler/testData/multiplatform/classScopes/simple/output.txt +++ b/compiler/testData/multiplatform/classScopes/simple/output.txt @@ -7,7 +7,7 @@ Exit code: OK Output: compiler/testData/multiplatform/classScopes/simple/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 Foo(param: String) { -^ +^^^^^^ compiler/testData/multiplatform/classScopes/simple/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 Foo actual constructor(param: String) { -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/createImplClassInPlatformModule/output.txt b/compiler/testData/multiplatform/createImplClassInPlatformModule/output.txt index d8d5225572b..0d28ead9e67 100644 --- a/compiler/testData/multiplatform/createImplClassInPlatformModule/output.txt +++ b/compiler/testData/multiplatform/createImplClassInPlatformModule/output.txt @@ -7,7 +7,7 @@ Exit code: OK Output: compiler/testData/multiplatform/createImplClassInPlatformModule/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 Foo -^ +^^^^^^ compiler/testData/multiplatform/createImplClassInPlatformModule/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 Foo(x: Int) { -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/defaultArguments/methodDefaultArgsViaTypealias/output.txt b/compiler/testData/multiplatform/defaultArguments/methodDefaultArgsViaTypealias/output.txt index 4c3b3a97436..99d101fbcc2 100644 --- a/compiler/testData/multiplatform/defaultArguments/methodDefaultArgsViaTypealias/output.txt +++ b/compiler/testData/multiplatform/defaultArguments/methodDefaultArgsViaTypealias/output.txt @@ -11,4 +11,4 @@ compiler/testData/multiplatform/defaultArguments/methodDefaultArgsViaTypealias/j expect constructor(p: String = ...): A actual typealias A = AImpl -^ +^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/output.txt b/compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/output.txt index f747931bcd2..f6b387d92b3 100644 --- a/compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/output.txt +++ b/compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/output.txt @@ -7,22 +7,22 @@ Exit code: OK Output: compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/common.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 C(x: Int, y: String = "OK") -^ +^^^^^^ compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/common.kt:7: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 annotation class Anno1(val x: Int, val y: String = "OK") -^ +^^^^^^ compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/common.kt:9: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 annotation class Anno2(val x: Int, val y: String = "OK") -^ +^^^^^^ compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/jvm.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 actual class C actual constructor(x: Int, y: String) {} -^ +^^^^^^ compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/jvm.kt:7: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 annotation class Anno1(actual val x: Int, actual val y: String = "OK") -^ +^^^^^^ compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/jvm.kt:9: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 annotation class Anno2(actual val x: Int, actual val y: String) -^ +^^^^^^ -- JVM (2) -- Exit code: OK diff --git a/compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/output.txt b/compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/output.txt index 69716533974..766852ee1a9 100644 --- a/compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/output.txt +++ b/compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/output.txt @@ -7,13 +7,13 @@ Exit code: OK Output: compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/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 abstract class Base { -^ +^^^^^^ compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/common.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 DerivedImplicit : Base { -^ +^^^^^^ compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/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 abstract class Base { -^ +^^^^^^ compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/jvm.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 actual class DerivedImplicit : Base() { -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/genericDeclarations/output.txt b/compiler/testData/multiplatform/genericDeclarations/output.txt index ca155a7121c..4d9878e67ae 100644 --- a/compiler/testData/multiplatform/genericDeclarations/output.txt +++ b/compiler/testData/multiplatform/genericDeclarations/output.txt @@ -7,25 +7,25 @@ Exit code: OK Output: compiler/testData/multiplatform/genericDeclarations/common.kt:9: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 C1 -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/common.kt:10: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 C2> -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/common.kt:11: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 C3> -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/common.kt:13: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 abstract class AbstractList : MutableList -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/jvm.kt:11: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 C1 -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/jvm.kt:12: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 C2> -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/jvm.kt:13: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 C3> -^ +^^^^^^ compiler/testData/multiplatform/genericDeclarations/jvm.kt:15: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 abstract class AbstractList : MutableList, java.io.Serializable -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/output.txt b/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/output.txt index 65f793901f9..497ea948f3e 100644 --- a/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/output.txt +++ b/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/output.txt @@ -7,7 +7,7 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:3:1: error: right-hand side of actual type alias cannot be of type kotlin.Nothing actual typealias E01 = Nothing -^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:3:18: error: 'actual typealias E01 = Nothing' has no corresponding members for expected class members: fun equals(other: Any?): Boolean @@ -17,10 +17,10 @@ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:3: fun toString(): String actual typealias E01 = Nothing - ^ + ^^^ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:4:1: error: right-hand side of actual type alias should be a class, not another type alias. actual typealias E02 = MyNothing -^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:4:18: error: 'actual typealias E02 = MyNothing' has no corresponding members for expected class members: fun equals(other: Any?): Boolean @@ -30,4 +30,4 @@ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNothing/jvm.kt:4: fun toString(): String actual typealias E02 = MyNothing - ^ + ^^^ diff --git a/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/output.txt b/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/output.txt index dffc0bd1b34..238a39d32ad 100644 --- a/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/output.txt +++ b/compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/output.txt @@ -7,7 +7,7 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/jvm.kt:3:1: error: right-hand side of actual type alias cannot be a nullable type actual typealias E01 = String? -^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/implTypeAlias/actualTypealiasToNullableType/jvm.kt:4:1: error: right-hand side of actual type alias should be a class, not another type alias. actual typealias E02 = MyNullable -^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/output.txt b/compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/output.txt index 4eaaad2194b..039406bebb1 100644 --- a/compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/output.txt +++ b/compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/output.txt @@ -7,10 +7,10 @@ Exit code: OK Output: compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/common.kt:3: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/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/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 typealias A = AImpl -^ +^^^^^^ -- JVM (2) -- Exit code: OK diff --git a/compiler/testData/multiplatform/implTypeAlias/generic/output.txt b/compiler/testData/multiplatform/implTypeAlias/generic/output.txt index ba367459c72..ea827167535 100644 --- a/compiler/testData/multiplatform/implTypeAlias/generic/output.txt +++ b/compiler/testData/multiplatform/implTypeAlias/generic/output.txt @@ -7,7 +7,7 @@ Exit code: OK Output: compiler/testData/multiplatform/implTypeAlias/generic/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 C1 { -^ +^^^^^^ compiler/testData/multiplatform/implTypeAlias/generic/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 typealias C1 = C1Impl -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/output.txt b/compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/output.txt index d34b638d8c4..3c247b17727 100644 --- a/compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/output.txt +++ b/compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/output.txt @@ -7,10 +7,10 @@ Exit code: OK Output: compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/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 ByTypeAlias { -^ +^^^^^^ compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/common.kt:2:15: 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 interface Nested - ^ + ^^^^^^ compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/jvm.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 actual typealias ByTypeAlias = ByTypeAliasImpl -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/incompatibleCallables/output.txt b/compiler/testData/multiplatform/incompatibleCallables/output.txt index a35212f5557..317ae70ca64 100644 --- a/compiler/testData/multiplatform/incompatibleCallables/output.txt +++ b/compiler/testData/multiplatform/incompatibleCallables/output.txt @@ -10,115 +10,115 @@ The following declaration is incompatible because return type is different: expect fun f1(): Unit actual fun f1(): String = "" - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:3:12: error: 'actual fun f2(otherName: String): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter names are different: expect fun f2(name: String): Unit actual fun f2(otherName: String) {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:5:12: error: 'actual fun f3(name: Double): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter types are different: expect fun f3(name: String): Unit actual fun f3(name: Double) {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:6:19: error: 'actual fun Double.f3ext(): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter types are different: expect fun String.f3ext(): Unit actual fun Double.f3ext() {} - ^ + ^^^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:8:19: error: 'actual fun String.f4(): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter shapes are different (extension vs non-extension): expect fun f4(name: String): Unit actual fun String.f4() {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:10:12: error: 'actual fun f5(name: String): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter shapes are different (extension vs non-extension): expect fun String.f5(): Unit actual fun f5(name: String) {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:12:12: error: 'actual fun f6(p2: Int): Unit' has no corresponding expected declaration The following declaration is incompatible because number of value parameters is different: expect fun f6(p1: String, p2: Int): Unit actual fun f6(p2: Int) {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:14:19: error: 'actual fun f7(): Unit' has no corresponding expected declaration The following declaration is incompatible because number of type parameters is different: expect fun f7(): Unit actual fun f7() {} - ^ + ^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:17:21: error: 'actual fun f10(): Unit' has no corresponding expected declaration The following declaration is incompatible because visibility is different: expect fun f10(): Unit internal actual fun f10() {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:19:29: error: 'actual fun f11(): Unit' has no corresponding expected declaration The following declaration is incompatible because upper bounds of type parameters are different: expect fun f11(): Unit actual fun f11() {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:20:42: error: 'actual fun > f12(): Unit' has no corresponding expected declaration The following declaration is incompatible because upper bounds of type parameters are different: expect fun > f12(): Unit actual fun > f12() {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:21:35: error: 'actual fun > f13(): Unit' has no corresponding expected declaration The following declaration is incompatible because upper bounds of type parameters are different: expect fun > f13(): Unit actual fun > f13() {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:23:31: error: 'actual fun f14(): Unit' has no corresponding expected declaration The following declaration is incompatible because some type parameter is reified in one declaration and non-reified in the other: expect fun f14(): Unit actual inline fun f14() {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:26:16: error: actual function cannot have default argument values. They should be declared in the expected function. actual fun f16(s: String = "") {} - ^ + ^^^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:28:12: error: 'actual fun f17(s: Array): Unit' has no corresponding expected declaration The following declaration is incompatible because some value parameter is vararg in one declaration and non-vararg in the other: expect fun f17(vararg s: Array): Unit actual fun f17(s: Array) {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:29:12: error: 'actual fun f18(vararg s: Array): Unit' has no corresponding expected declaration The following declaration is incompatible because some value parameter is vararg in one declaration and non-vararg in the other: expect fun f18(s: Array): Unit actual fun f18(vararg s: String) {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:30:19: error: 'actual fun f19(crossinline s: () -> Unit): Unit' has no corresponding expected declaration The following declaration is incompatible because some value parameter is crossinline in one declaration and not crossinline in the other: expect fun f19(s: () -> Unit): Unit actual inline fun f19(crossinline s: () -> Unit) {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:31:19: error: 'actual fun f20(noinline s: () -> Unit): Unit' has no corresponding expected declaration The following declaration is incompatible because some value parameter is noinline in one declaration and not noinline in the other: expect fun f20(s: () -> Unit): Unit actual inline fun f20(noinline s: () -> Unit) {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:32:12: error: 'actual fun f21(c: Unit.() -> Unit): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter types are different: expect fun f21(c: suspend Unit.() -> Unit): Unit actual fun f21(c: Unit.() -> Unit) {} - ^ + ^^^ compiler/testData/multiplatform/incompatibleCallables/jvm.kt:33:12: error: 'actual fun f22(c: suspend Unit.() -> Unit): Unit' has no corresponding expected declaration The following declaration is incompatible because parameter types are different: expect fun f22(c: Unit.() -> Unit): Unit actual fun f22(c: suspend Unit.() -> Unit) {} - ^ + ^^^ diff --git a/compiler/testData/multiplatform/incompatibleClasses/output.txt b/compiler/testData/multiplatform/incompatibleClasses/output.txt index 7b9032289d5..0a2adf08739 100644 --- a/compiler/testData/multiplatform/incompatibleClasses/output.txt +++ b/compiler/testData/multiplatform/incompatibleClasses/output.txt @@ -10,94 +10,94 @@ The following declaration is incompatible because class kinds are different (cla expect class PClass : Any actual interface PClass - ^ + ^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:2:15: error: 'actual object PInterface : Any' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect interface PInterface : Any actual object PInterface - ^ + ^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:3:19: error: 'actual enum class PObject : Enum' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect object PObject : Any actual enum class PObject - ^ + ^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:4:25: error: 'actual annotation class PEnumClass : Annotation' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect enum class PEnumClass : Enum actual annotation class PEnumClass - ^ + ^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:5:14: error: 'actual class PAnnotationClass : Any' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect annotation class PAnnotationClass : Annotation actual class PAnnotationClass - ^ + ^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:7:24: error: 'actual object PublicObject : Any' has no corresponding expected declaration The following declaration is incompatible because visibility is different: expect object PublicObject : Any internal actual object PublicObject - ^ + ^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:10:20: error: 'actual class OpenClass : Any' has no corresponding expected declaration The following declaration is incompatible because modality is different: expect class OpenClass : Any final actual class OpenClass - ^ + ^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:11:19: error: 'actual class AbstractClass : Any' has no corresponding expected declaration The following declaration is incompatible because modality is different: expect class AbstractClass : Any open actual class AbstractClass - ^ + ^^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:12:23: error: 'actual class FinalClass : Any' has no corresponding expected declaration The following declaration is incompatible because modality is different: expect class FinalClass : Any abstract actual class FinalClass - ^ + ^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:14:14: error: 'actual class C1 : Any' has no corresponding expected declaration The following declaration is incompatible because number of type parameters is different: expect class C1 : Any actual class C1 - ^ + ^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:15:14: error: 'actual class C2 : Any' has no corresponding expected declaration The following declaration is incompatible because declaration-site variances of type parameters are different: expect class C2 : Any actual class C2 - ^ + ^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:16:14: error: 'actual class C3 : Any' has no corresponding expected declaration The following declaration is incompatible because upper bounds of type parameters are different: expect class C3 : Any actual class C3 - ^ + ^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:18:18: error: 'actual typealias C4 = C4Impl' has no corresponding expected declaration The following declaration is incompatible because upper bounds of type parameters are different: expect class C4 : Any actual typealias C4 = C4Impl - ^ + ^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:21:23: error: 'actual class ExtendsNumber : Any' has no corresponding expected declaration The following declaration is incompatible because some supertypes are missing in the actual declaration: expect class ExtendsNumber : Number actual abstract class ExtendsNumber : Any() - ^ + ^^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:23:18: error: 'actual interface FunInterface : Any' has no corresponding expected declaration The following declaration is incompatible because actual declaration for fun expect interface is not a functional interface: expect fun interface FunInterface : Any actual interface FunInterface { - ^ + ^^^^^^^^^^^^ compiler/testData/multiplatform/incompatibleClasses/jvm.kt:31:18: error: 'actual typealias FunInterface2 = FunInterface2Typealias' has no corresponding expected declaration The following declaration is incompatible because actual declaration for fun expect interface is not a functional interface: expect fun interface FunInterface2 : Any actual typealias FunInterface2 = FunInterface2Typealias - ^ + ^^^^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/incompatibleFunctions/output.txt b/compiler/testData/multiplatform/incompatibleFunctions/output.txt index 66b781f71c7..5f73f67d6f2 100644 --- a/compiler/testData/multiplatform/incompatibleFunctions/output.txt +++ b/compiler/testData/multiplatform/incompatibleFunctions/output.txt @@ -10,16 +10,16 @@ The following declaration is incompatible because some modifiers on expected dec expect fun Int.plus(s: CharSequence): Int actual fun Int.plus(s: CharSequence): Int = 0 - ^ + ^^^^ compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:3:19: error: 'actual fun Double.times(x: CharArray): Unit' has no corresponding expected declaration The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (infix, inline, operator): expect fun Double.times(x: CharArray): Unit actual fun Double.times(x: CharArray) {} - ^ + ^^^^^ compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:5:12: error: 'actual fun f1(): Unit' has no corresponding expected declaration The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (infix, inline, operator): expect fun f1(): Unit actual fun f1() {} - ^ + ^^ diff --git a/compiler/testData/multiplatform/incompatibleNestedClasses/output.txt b/compiler/testData/multiplatform/incompatibleNestedClasses/output.txt index 1f0e8fa0689..13f793244cf 100644 --- a/compiler/testData/multiplatform/incompatibleNestedClasses/output.txt +++ b/compiler/testData/multiplatform/incompatibleNestedClasses/output.txt @@ -10,46 +10,46 @@ The following declaration is incompatible because class kinds are different (cla expect class N1 : Any actual interface N1 - ^ + ^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:3:19: error: 'actual object N2 : Any' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect interface N2 : Any actual object N2 - ^ + ^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:4:18: error: 'actual class N3 : Any' has no corresponding expected declaration The following declaration is incompatible because class kinds are different (class, interface, object, enum, annotation): expect object N3 : Any actual class N3 - ^ + ^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:8:24: error: 'actual inner class N2 : Any' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline, value): expect class N2 : Any actual inner class N2 - ^ + ^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:9:18: error: 'actual class I2 : Any' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline, value): expect inner class I2 : Any actual class I2 - ^ + ^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:13:22: error: 'actual companion object Companion : Any' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline, value): expect object Companion : Any actual companion object {} - ^ + ^^^^^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:14:19: error: 'actual object Factory : Any' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline, value): expect companion object Factory : Any actual object Factory - ^ + ^^^^^^^ compiler/testData/multiplatform/incompatibleNestedClasses/jvm.kt:18:19: error: 'actual object Companion : Any' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline, value): expect companion object Companion : Any actual object Companion - ^ + ^^^^^^^^^ diff --git a/compiler/testData/multiplatform/incompatibleProperties/output.txt b/compiler/testData/multiplatform/incompatibleProperties/output.txt index d703aa3abb5..58e2f020b9a 100644 --- a/compiler/testData/multiplatform/incompatibleProperties/output.txt +++ b/compiler/testData/multiplatform/incompatibleProperties/output.txt @@ -10,10 +10,10 @@ The following declaration is incompatible because property kinds are different ( expect val pval: String actual var pval: String = "" - ^ + ^^^^ compiler/testData/multiplatform/incompatibleProperties/jvm.kt:2:12: error: 'actual val pvar: String' has no corresponding expected declaration The following declaration is incompatible because property kinds are different (val vs var): expect var pvar: String actual val pvar: String = "" - ^ + ^^^^ diff --git a/compiler/testData/multiplatform/incorrectImplInClass/output.txt b/compiler/testData/multiplatform/incorrectImplInClass/output.txt index fcad5619730..1b6b3f9f362 100644 --- a/compiler/testData/multiplatform/incorrectImplInClass/output.txt +++ b/compiler/testData/multiplatform/incorrectImplInClass/output.txt @@ -7,13 +7,13 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/incorrectImplInClass/jvm.kt:1:18: error: 'actual constructor(): Foo' has no corresponding expected declaration actual class Foo actual constructor() { - ^ + ^^^^^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/incorrectImplInClass/jvm.kt:2:5: error: 'actual constructor(s: String): Foo' has no corresponding expected declaration actual constructor(s: String) : this() - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compiler/testData/multiplatform/incorrectImplInClass/jvm.kt:4:16: error: 'actual fun nonPlatformFun(): Unit' has no corresponding expected declaration actual fun nonPlatformFun() {} - ^ + ^^^^^^^^^^^^^^ compiler/testData/multiplatform/incorrectImplInClass/jvm.kt:6:16: error: 'actual val nonPlatformVal: String' has no corresponding expected declaration actual val nonPlatformVal = "" - ^ + ^^^^^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/inlineClasses/output.txt b/compiler/testData/multiplatform/inlineClasses/output.txt index 6ecf53454ea..889cc70ae03 100644 --- a/compiler/testData/multiplatform/inlineClasses/output.txt +++ b/compiler/testData/multiplatform/inlineClasses/output.txt @@ -10,7 +10,7 @@ The following declaration is incompatible because modifiers are different (compa expect class Foo2 : Any actual class Foo2 actual constructor(actual val y: String) - ^ + ^^^^ -- JS -- Exit code: COMPILATION_ERROR @@ -20,4 +20,4 @@ The following declaration is incompatible because modifiers are different (compa expect class Foo2 : Any actual class Foo2 actual constructor(actual val y: String) - ^ + ^^^^ diff --git a/compiler/testData/multiplatform/innerGenericClass/output.txt b/compiler/testData/multiplatform/innerGenericClass/output.txt index 3b01b7630c2..bc0e52be969 100644 --- a/compiler/testData/multiplatform/innerGenericClass/output.txt +++ b/compiler/testData/multiplatform/innerGenericClass/output.txt @@ -7,4 +7,4 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/innerGenericClass/common2.kt:8:15: error: unresolved reference 'unresolved'. b.getAE().unresolved() - ^ + ^^^^^^^^^^ diff --git a/compiler/testData/multiplatform/jsNameClash/output.txt b/compiler/testData/multiplatform/jsNameClash/output.txt index ce51cebf799..40240c87fad 100644 --- a/compiler/testData/multiplatform/jsNameClash/output.txt +++ b/compiler/testData/multiplatform/jsNameClash/output.txt @@ -7,7 +7,7 @@ Exit code: OK Output: compiler/testData/multiplatform/jsNameClash/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 ClassWithImplByExtension -^ +^^^^^^ compiler/testData/multiplatform/jsNameClash/js.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 ClassWithImplByExtension -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/missingOverload/output.txt b/compiler/testData/multiplatform/missingOverload/output.txt index 36fd9a2798a..50f7e16ebed 100644 --- a/compiler/testData/multiplatform/missingOverload/output.txt +++ b/compiler/testData/multiplatform/missingOverload/output.txt @@ -13,4 +13,4 @@ compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: 'actual clas actual fun f(s: String): Unit actual class Foo { - ^ + ^^^ diff --git a/compiler/testData/multiplatform/optionalExpectation/output.txt b/compiler/testData/multiplatform/optionalExpectation/output.txt index f62dc37910f..752dba3be8c 100644 --- a/compiler/testData/multiplatform/optionalExpectation/output.txt +++ b/compiler/testData/multiplatform/optionalExpectation/output.txt @@ -7,14 +7,14 @@ Exit code: OK Output: compiler/testData/multiplatform/optionalExpectation/common.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 annotation class A() -^ +^^^^^^ compiler/testData/multiplatform/optionalExpectation/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 annotation class A -^ +^^^^^^ -- JS -- Exit code: OK Output: compiler/testData/multiplatform/optionalExpectation/common.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 annotation class A() -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/output.txt b/compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/output.txt index 74f3e6886e7..86ee09a5f92 100644 --- a/compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/output.txt +++ b/compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/output.txt @@ -13,4 +13,4 @@ compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeA constructor(): Writer actual typealias Writer = java.io.Writer - ^ + ^^^^^^ diff --git a/compiler/testData/multiplatform/regressions/kt28385/output.txt b/compiler/testData/multiplatform/regressions/kt28385/output.txt index 1bd9c1ce178..976e585132a 100644 --- a/compiler/testData/multiplatform/regressions/kt28385/output.txt +++ b/compiler/testData/multiplatform/regressions/kt28385/output.txt @@ -7,10 +7,10 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/regressions/kt28385/jvm.kt:3:1: error: property must be initialized. val dasda -^ +^^^^^^^^^ compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:1: error: syntax error: Expecting a top level declaration. sdax = { -^ +^^^^ compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:6: error: syntax error: Expecting a top level declaration. sdax = { ^ diff --git a/compiler/testData/multiplatform/simple/output.txt b/compiler/testData/multiplatform/simple/output.txt index 1c536a19351..e8c8a735c89 100644 --- a/compiler/testData/multiplatform/simple/output.txt +++ b/compiler/testData/multiplatform/simple/output.txt @@ -7,17 +7,17 @@ Exit code: OK Output: compiler/testData/multiplatform/simple/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 Printer() { -^ +^^^^^^ compiler/testData/multiplatform/simple/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 Printer { -^ +^^^^^^ -- JS -- Exit code: OK Output: compiler/testData/multiplatform/simple/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 Printer() { -^ +^^^^^^ compiler/testData/multiplatform/simple/js.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 Printer { -^ +^^^^^^ diff --git a/compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/output.txt b/compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/output.txt index 1a79524b6bb..86f867731d2 100644 --- a/compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/output.txt +++ b/compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/output.txt @@ -7,4 +7,4 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/jvm.kt:3:5: error: declaration must be marked with 'actual'. fun foo(s: String): Array = arrayOf(s) - ^ + ^^^ diff --git a/compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/output.txt b/compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/output.txt index 9a802d88bae..40bfe50c4e6 100644 --- a/compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/output.txt +++ b/compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/output.txt @@ -7,4 +7,4 @@ Exit code: COMPILATION_ERROR Output: compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/jvm.kt:1:11: error: declaration must be marked with 'actual'. interface Foo - ^ + ^^^ diff --git a/native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/output.txt b/native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/output.txt index 35de65c7ef3..00d81c2c03a 100644 --- a/native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/output.txt +++ b/native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/output.txt @@ -2,10 +2,10 @@ native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/main.kt:4: fun foo(): kotlin.String defined in com.example.klib.serialization.diagnostics.A fun foo(): kotlin.Int defined in com.example.klib.serialization.diagnostics.A @Deprecated("", level = DeprecationLevel.HIDDEN) - ^ + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ native/native.tests/testData/compilerOutput/SignatureClashDiagnostics/main.kt:7:5: error: platform declaration clash: The following declarations have the same IR signature (com.example.klib.serialization.diagnostics/A.foo|foo(){}[0]): fun foo(): kotlin.String defined in com.example.klib.serialization.diagnostics.A fun foo(): kotlin.Int defined in com.example.klib.serialization.diagnostics.A fun foo(): Int = 0 - ^ + ^^^^^^^^^^^^^^^^^^ COMPILATION_ERROR diff --git a/plugins/assign-plugin/testData/diagnostics/incorrectUsage.diag.txt b/plugins/assign-plugin/testData/diagnostics/incorrectUsage.diag.txt index c36c5ec1dc1..504888692f5 100644 --- a/plugins/assign-plugin/testData/diagnostics/incorrectUsage.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/incorrectUsage.diag.txt @@ -1,19 +1,19 @@ /incorrectUsage.kt:18:5: error: val cannot be reassigned task.input = 42 - ^ + ^^^^^^^^^^ /incorrectUsage.kt:18:16: error: no applicable 'assign' function found for '=' overload task.input = 42 ^ /incorrectUsage.kt:18:18: error: the integer literal does not conform to the expected type StringProperty task.input = 42 - ^ + ^^ /incorrectUsage.kt:24:9: error: val cannot be reassigned input = 42 - ^ + ^^^^^ /incorrectUsage.kt:24:15: error: no applicable 'assign' function found for '=' overload input = 42 ^ /incorrectUsage.kt:24:17: error: the integer literal does not conform to the expected type StringProperty input = 42 - ^ + ^^ diff --git a/plugins/assign-plugin/testData/diagnostics/localVariables.diag.txt b/plugins/assign-plugin/testData/diagnostics/localVariables.diag.txt index 76b51ecdc1b..45d7cbeaf8f 100644 --- a/plugins/assign-plugin/testData/diagnostics/localVariables.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/localVariables.diag.txt @@ -1,22 +1,22 @@ /localVariables.kt:18:5: error: val cannot be reassigned property = "Fail" - ^ + ^^^^^^^^ /localVariables.kt:18:16: error: type mismatch: inferred type is String but StringProperty was expected property = "Fail" - ^ + ^^^^^^ /localVariables.kt:23:5: error: val cannot be reassigned property = StringProperty("Fail") - ^ + ^^^^^^^^ /localVariables.kt:28:16: error: type mismatch: inferred type is String but StringProperty was expected property = "Fail" - ^ + ^^^^^^ /localVariables.kt:38:9: error: val cannot be reassigned property = "Fail" - ^ + ^^^^^^^^ /localVariables.kt:38:20: error: type mismatch: inferred type is String but StringProperty was expected property = "Fail" - ^ + ^^^^^^ /localVariables.kt:42:9: error: val cannot be reassigned property = StringProperty("Fail") - ^ + ^^^^^^^^ diff --git a/plugins/assign-plugin/testData/diagnostics/methodDeclaration.diag.txt b/plugins/assign-plugin/testData/diagnostics/methodDeclaration.diag.txt index 6abfe2bd016..374522a050a 100644 --- a/plugins/assign-plugin/testData/diagnostics/methodDeclaration.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/methodDeclaration.diag.txt @@ -1,28 +1,28 @@ /methodDeclaration.kt:5:28: error: function 'assign' used for '=' overload should return 'Unit' fun assign(v: String): String { - ^ + ^^^^^^ /methodDeclaration.kt:9:36: error: function 'assign' used for '=' overload should return 'Unit' fun assign(v: StringProperty): String { - ^ + ^^^^^^ /methodDeclaration.kt:16:36: error: function 'assign' used for '=' overload should return 'Unit' fun StringProperty.assign(v: Int): String { - ^ + ^^^^^^ /methodDeclaration.kt:25:5: error: val cannot be reassigned task.input = "42" - ^ + ^^^^^^^^^^ /methodDeclaration.kt:25:16: error: function 'assign' used for '=' overload should return 'Unit' task.input = "42" ^ /methodDeclaration.kt:26:5: error: val cannot be reassigned task.input = 42 - ^ + ^^^^^^^^^^ /methodDeclaration.kt:26:16: error: function 'assign' used for '=' overload should return 'Unit' task.input = 42 ^ /methodDeclaration.kt:35:5: error: val cannot be reassigned task.input = 42 - ^ + ^^^^^^^^^^ /methodDeclaration.kt:35:18: error: the integer literal does not conform to the expected type IntProperty task.input = 42 - ^ + ^^ diff --git a/plugins/assign-plugin/testData/diagnostics/noAnnotation.diag.txt b/plugins/assign-plugin/testData/diagnostics/noAnnotation.diag.txt index 519139ec454..99fb70d3473 100644 --- a/plugins/assign-plugin/testData/diagnostics/noAnnotation.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/noAnnotation.diag.txt @@ -1,31 +1,31 @@ /noAnnotation.kt:17:5: error: val cannot be reassigned task.input = "OK" - ^ + ^^^^^^^^^^ /noAnnotation.kt:17:18: error: type mismatch: inferred type is String but StringProperty was expected task.input = "OK" - ^ + ^^^^ /noAnnotation.kt:18:5: error: val cannot be reassigned task.input = StringProperty("OK") - ^ + ^^^^^^^^^^ /noAnnotation.kt:20:9: error: val cannot be reassigned input = "OK" - ^ + ^^^^^ /noAnnotation.kt:20:17: error: type mismatch: inferred type is String but StringProperty was expected input = "OK" - ^ + ^^^^ /noAnnotation.kt:23:9: error: val cannot be reassigned input = StringProperty("OK") - ^ + ^^^^^ /noAnnotation.kt:25:5: error: val cannot be reassigned task.input = 42 - ^ + ^^^^^^^^^^ /noAnnotation.kt:25:18: error: the integer literal does not conform to the expected type StringProperty task.input = 42 - ^ + ^^ /noAnnotation.kt:27:9: error: val cannot be reassigned input = 42 - ^ + ^^^^^ /noAnnotation.kt:27:17: error: the integer literal does not conform to the expected type StringProperty input = 42 - ^ + ^^ diff --git a/plugins/assign-plugin/testData/diagnostics/otherOperators.diag.txt b/plugins/assign-plugin/testData/diagnostics/otherOperators.diag.txt index 112db49b031..bcc07195715 100644 --- a/plugins/assign-plugin/testData/diagnostics/otherOperators.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/otherOperators.diag.txt @@ -1,77 +1,77 @@ -/otherOperators.kt:21:16: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: +/otherOperators.kt:21:16: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public operator fun String?.plus(other: Any?): String defined in kotlin task.input += StringProperty("Fail") - ^ -/otherOperators.kt:22:21: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: + ^^ +/otherOperators.kt:22:21: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public operator fun String?.plus(other: Any?): String defined in kotlin nullTask?.input += StringProperty("Fail") - ^ + ^^ /otherOperators.kt:25:16: error: unresolved reference: <= task.input <= StringProperty("Fail") - ^ + ^^ /otherOperators.kt:26:21: error: unresolved reference: <= nullTask?.input <= StringProperty("Fail") - ^ + ^^ /otherOperators.kt:29:16: error: unresolved reference: >= task.input >= StringProperty("Fail") - ^ + ^^ /otherOperators.kt:30:21: error: unresolved reference: >= nullTask?.input >= StringProperty("Fail") - ^ + ^^ /otherOperators.kt:33:15: error: unresolved reference: task.input[0] task.input[0] = StringProperty("Fail") ^ /otherOperators.kt:33:15: error: no set method providing array access task.input[0] = StringProperty("Fail") - ^ + ^^^ /otherOperators.kt:34:20: error: unresolved reference: nullTask?.input[0] nullTask?.input[0] = StringProperty("Fail") ^ /otherOperators.kt:34:20: error: no set method providing array access nullTask?.input[0] = StringProperty("Fail") - ^ + ^^^ /otherOperators.kt:37:15: error: unresolved reference: task.input[0, 0] task.input[0, 0] = StringProperty("Fail") ^ /otherOperators.kt:37:15: error: no set method providing array access task.input[0, 0] = StringProperty("Fail") - ^ + ^^^^^^ /otherOperators.kt:38:20: error: unresolved reference: nullTask?.input[0, 0] nullTask?.input[0, 0] = StringProperty("Fail") ^ /otherOperators.kt:38:20: error: no set method providing array access nullTask?.input[0, 0] = StringProperty("Fail") - ^ + ^^^^^^ /otherOperators.kt:41:15: error: unresolved reference: task.input[0, 0, 0] task.input[0, 0, 0] = StringProperty("Fail") ^ /otherOperators.kt:41:15: error: no set method providing array access task.input[0, 0, 0] = StringProperty("Fail") - ^ + ^^^^^^^^^ /otherOperators.kt:42:20: error: unresolved reference: nullTask?.input[0, 0, 0] nullTask?.input[0, 0, 0] = StringProperty("Fail") ^ /otherOperators.kt:42:20: error: no set method providing array access nullTask?.input[0, 0, 0] = StringProperty("Fail") - ^ + ^^^^^^^^^ /otherOperators.kt:45:5: error: 'operator' modifier is required on 'get' in 'StringProperty' task.input[0] += StringProperty("Fail") - ^ + ^^^^^^^^^^^^^ /otherOperators.kt:45:15: error: no set method providing array access task.input[0] += StringProperty("Fail") - ^ + ^^^ /otherOperators.kt:45:16: error: too many arguments for public final fun get(): String defined in StringProperty task.input[0] += StringProperty("Fail") ^ /otherOperators.kt:46:5: error: 'operator' modifier is required on 'get' in 'StringProperty' nullTask?.input[0] += StringProperty("Fail") - ^ + ^^^^^^^^^^^^^^^^^^ /otherOperators.kt:46:5: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type StringProperty? nullTask?.input[0] += StringProperty("Fail") - ^ + ^^^^^^^^^^^^^^^^^^ /otherOperators.kt:46:20: error: no set method providing array access nullTask?.input[0] += StringProperty("Fail") - ^ + ^^^ /otherOperators.kt:46:21: error: too many arguments for public final fun get(): String defined in StringProperty nullTask?.input[0] += StringProperty("Fail") ^ @@ -80,10 +80,11 @@ public operator fun String?.plus(other: Any?): String defined in kotlin ^ /otherOperators.kt:50:9: error: no set method providing array access task[0] = StringProperty("Fail") - ^ + ^^^ /otherOperators.kt:53:10: error: variable expected task.get(0) = StringProperty("Fail") - ^ + ^^^^^^ /otherOperators.kt:54:15: error: variable expected nullTask?.get(0) = StringProperty("Fail") - ^ + ^^^^^^ + diff --git a/plugins/assign-plugin/testData/diagnostics/plusAssignPrecedence.diag.txt b/plugins/assign-plugin/testData/diagnostics/plusAssignPrecedence.diag.txt index e73904b0261..8ad6365199e 100644 --- a/plugins/assign-plugin/testData/diagnostics/plusAssignPrecedence.diag.txt +++ b/plugins/assign-plugin/testData/diagnostics/plusAssignPrecedence.diag.txt @@ -1,17 +1,17 @@ -/plusAssignPrecedence.kt:96:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: +/plusAssignPrecedence.kt:96:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public operator fun String?.plus(other: Any?): String defined in kotlin task.valInput += "K" - ^ -/plusAssignPrecedence.kt:97:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: + ^^ +/plusAssignPrecedence.kt:97:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public operator fun String?.plus(other: Any?): String defined in kotlin task.varInput += "K" - ^ + ^^ /plusAssignPrecedence.kt:99:5: error: val cannot be reassigned task.valInputWithPlus += "K" - ^ -/plusAssignPrecedence.kt:101:40: error: assignment operators ambiguity: + ^^^^^^^^^^^^^^^^^^^^^ +/plusAssignPrecedence.kt:101:40: error: assignment operators ambiguity: public final operator fun plus(v: String): StringPropertyWithPlusAndPlusAssign defined in StringPropertyWithPlusAndPlusAssign public final operator fun plusAssign(v: String): Unit defined in StringPropertyWithPlusAndPlusAssign task.varInputWithPlusAndPlusAssign += "K" - ^ + ^^ diff --git a/plugins/kapt3/kapt3-cli/testData/integration/correctErrorTypesOff/build.txt b/plugins/kapt3/kapt3-cli/testData/integration/correctErrorTypesOff/build.txt index 7cd08eb7cb7..27097c4a630 100644 --- a/plugins/kapt3/kapt3-cli/testData/integration/correctErrorTypesOff/build.txt +++ b/plugins/kapt3/kapt3-cli/testData/integration/correctErrorTypesOff/build.txt @@ -46,7 +46,7 @@ Return code: 1 error: error: NonExistentClass type occurred Test.kt:4:8: error: unresolved reference: generated import generated.Property - ^ + ^^^^^^^^^ Test.kt:8:28: error: unresolved reference: Property lateinit var property: Property - ^ \ No newline at end of file + ^^^^^^^^ \ No newline at end of file