Files
Mark Punzalan 3edeca1598 FIR IDE: Initial version of KotlinHighLevelFunctionParameterInfoHandler.
All the TODOs in the file must be resolved to enable all the remaining
tests.

GitOrigin-RevId: 826f035e0a2ec08bf380d2b96aa8f4ff1e7feea6
2022-01-22 11:09:10 +00:00

28 lines
548 B
Kotlin

// Possible parameter info, for index, lambda and arguments.
// Test is flaky without the fix. In IDEA there's a blinking without the fix with different popups.
fun foo(a: A) {
a.subscribe(object : L {
override fun on() {
withLambda {
<caret>arrayOf(1)[0]
}
}
})
}
fun withLambda(a: (Int) -> Unit) {}
interface L {
fun on()
}
class A {
fun subscribe(listener: L) {}
}
/*
Text: (<highlight>a: (Int) -> Unit</highlight>), Disabled: false, Strikeout: false, Green: true
*/