Files
kotlin-fork/analysis/low-level-api-fir/testData/contextCollector/scripts/scriptInsideLastStatement.kts
T
Yan Zhulanow 08727bf0be [Analysis API] Add more ContextCollector tests inspired by dependentCopy
As the on-air analysis is obsolete, related tests are going to be
deleted. Here we add cases not yet covered by 'ContextCollector' tests.
2024-01-18 17:12:28 +00:00

17 lines
254 B
Kotlin
Vendored

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