ec4cbfef59
Implementation for PSI only
12 lines
281 B
Kotlin
Vendored
12 lines
281 B
Kotlin
Vendored
fun testInvoke() {
|
|
operator fun Nothing.invoke(): Nothing = this
|
|
todo()<!UNREACHABLE_CODE!>()<!>
|
|
}
|
|
|
|
fun testInvokeWithLambda() {
|
|
operator fun Nothing.invoke(i: Int, f: () -> Int) = f
|
|
todo()<!UNREACHABLE_CODE!>(1){ 42 }<!>
|
|
}
|
|
|
|
fun todo(): Nothing = throw Exception()
|