Files
kotlin-fork/analysis/low-level-api-fir/testdata/dependentCopy/scriptLastStatement.kts
T
Dmitrii Gridin 3947ba57da [LL FIR] support on-air resolve for scripts
We should reanalyze only statements and leave declarations as they are

^KT-61013 Fixed
2023-08-09 15:22:57 +00:00

17 lines
248 B
Kotlin

class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
<caret>foo(scriptFunction()) {
scriptFunction()
}