diff --git a/compiler/fir/resolve/testData/diagnostics/callableReferences/implicitTypes.txt b/compiler/fir/resolve/testData/diagnostics/callableReferences/implicitTypes.txt index 72b99e9ca86..5f6e2cb1f70 100644 --- a/compiler/fir/resolve/testData/diagnostics/callableReferences/implicitTypes.txt +++ b/compiler/fir/resolve/testData/diagnostics/callableReferences/implicitTypes.txt @@ -8,7 +8,7 @@ FILE: implicitTypes.kt public final fun bar(x: R|kotlin/String|): R|kotlin/Int| { ^bar Int(1) } - public final fun loop1(): { + public final fun loop1(): { ^loop1 #(::loop2#) } public final fun loop2(): { diff --git a/compiler/fir/resolve/testData/diagnostics/j+k/MyException.txt b/compiler/fir/resolve/testData/diagnostics/j+k/MyException.txt index dad4eeb6c3d..3b0b82f75ea 100644 --- a/compiler/fir/resolve/testData/diagnostics/j+k/MyException.txt +++ b/compiler/fir/resolve/testData/diagnostics/j+k/MyException.txt @@ -8,15 +8,15 @@ FILE: test.kt public final fun test(e: R|MyException|, stream: R|java/io/PrintStream|): R|kotlin/Unit| { R|/e|.R|kotlin/printStackTrace|() R|/e|.R|kotlin/printStackTrace|(R|/stream|) - lval result: = R|/e|.#() + lval result: = R|/e|.#() } public final fun test(e: R|YourException|, stream: R|java/io/PrintStream|): R|kotlin/Unit| { R|/e|.R|kotlin/printStackTrace|() R|/e|.R|kotlin/printStackTrace|(R|/stream|) - lval result: = R|/e|.#() + lval result: = R|/e|.#() } public final fun test(e: R|kotlin/Exception|, stream: R|java/io/PrintStream|): R|kotlin/Unit| { R|/e|.R|kotlin/printStackTrace|() R|/e|.R|kotlin/printStackTrace|(R|/stream|) - lval result: = R|/e|.#() + lval result: = R|/e|.#() } diff --git a/compiler/fir/resolve/testData/diagnostics/j+k/MyIterable.txt b/compiler/fir/resolve/testData/diagnostics/j+k/MyIterable.txt index b10f1123687..f39203c2115 100644 --- a/compiler/fir/resolve/testData/diagnostics/j+k/MyIterable.txt +++ b/compiler/fir/resolve/testData/diagnostics/j+k/MyIterable.txt @@ -2,11 +2,11 @@ FILE: test.kt public abstract interface UseIterable : R|MyIterable| { public open fun test(): R|kotlin/Unit| { lval it: R|kotlin/collections/MutableIterator| = this@R|kotlin/collections/MutableIterable|.R|FakeOverride|>|() - lval split: = #() + lval split: = #() } } public final fun test(some: R|kotlin/collections/Iterable|): R|kotlin/Unit| { lval it: R|kotlin/collections/Iterator| = R|/some|.R|FakeOverride|>|() - lval split: = R|/some|.#() + lval split: = R|/some|.#() } diff --git a/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.kt b/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.kt index e3a1282f9da..8a28c2722b0 100644 --- a/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.kt +++ b/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.kt @@ -10,7 +10,7 @@ fun test(map: MyMap) { val otherResult = map.getOrDefault("key", "value") val anotherResult = map.replace("key", "value") // Java forEach - map.forEach { key, value -> + map.forEach { key, value -> println("$key: $value") } // Kotlin forEach @@ -25,7 +25,7 @@ fun test(map: MutableMap) { val otherResult = map.getOrDefault("key", "value") val anotherResult = map.replace("key", "value") // Java forEach - map.forEach { key, value -> + map.forEach { key, value -> println("$key: $value") } // Kotlin forEach diff --git a/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.txt b/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.txt index 212bffd2edf..5a8d9accb41 100644 --- a/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.txt +++ b/compiler/fir/resolve/testData/diagnostics/j+k/MyMap.txt @@ -5,9 +5,9 @@ FILE: test.kt } ) lval otherResult: R|kotlin/String| = R|/map|.R|FakeOverride|(String(key), String(value)) - lval anotherResult: = R|/map|.#(String(key), String(value)) - R|/map|.R|kotlin/collections/forEach|( = forEach@fun (key: R|kotlin/collections/Map.Entry|, value: R|kotlin/Any?|): R|kotlin/Unit| { - R|kotlin/io/println|((R|/key|, String(: ), R|/value|)) + lval anotherResult: = R|/map|.#(String(key), String(value)) + R|/map|.#( = forEach@fun .(key: , value: ): { + println#((key#, String(: ), value#)) } ) R|/map|.R|kotlin/collections/forEach|( = forEach@fun (: R|kotlin/collections/Map.Entry|): R|kotlin/Unit| { @@ -23,9 +23,9 @@ FILE: test.kt } ) lval otherResult: R|kotlin/String| = R|/map|.R|FakeOverride|(String(key), String(value)) - lval anotherResult: = R|/map|.#(String(key), String(value)) - R|/map|.R|kotlin/collections/forEach|( = forEach@fun (key: R|kotlin/collections/Map.Entry|, value: R|kotlin/Any?|): R|kotlin/Unit| { - R|kotlin/io/println|((R|/key|, String(: ), R|/value|)) + lval anotherResult: = R|/map|.#(String(key), String(value)) + R|/map|.#( = forEach@fun .(key: , value: ): { + println#((key#, String(: ), value#)) } ) R|/map|.R|kotlin/collections/forEach|( = forEach@fun (: R|kotlin/collections/Map.Entry|): R|kotlin/Unit| {