Files
kotlin-fork/idea/testData/parameterInfo/functionCall/Conflicting.kt
T
2019-02-18 13:25:45 +03:00

28 lines
548 B
Kotlin
Vendored

// 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
*/