Fix blinking parameter info popup for nested places (KT-29574)

#KT-29574 Fixed
This commit is contained in:
Nikolay Krasko
2019-02-15 15:04:51 +03:00
parent 5f7815bd54
commit 9a99f832e5
4 changed files with 76 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
// 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
*/