Files
kotlin-fork/idea/idea-completion/testData/weighers/smart/CallableReference_NothingLast.kt
T
Valentin Kipyatkov 16c38a2415 KT-12138 Do not show "::error" in smart completion when any function type accepting one argument is expected
(actually made them lowest priority)

 #KT-12138 Fixed
2016-05-04 17:28:30 +03:00

13 lines
173 B
Kotlin
Vendored

fun foo(p: (Int) -> Unit) { }
fun fff1(p: Int): Nothing{}
fun fff2(p: Int): Unit{}
fun f() {
foo(<caret>)
}
// ORDER: {...}
// ORDER: { Int -> ... }
// ORDER: ::fff2