ec4cbfef59
Implementation for PSI only
16 lines
367 B
Kotlin
Vendored
16 lines
367 B
Kotlin
Vendored
fun testPrefix() {
|
|
operator fun Any.not() {}
|
|
<!UNREACHABLE_CODE!>!<!>todo()
|
|
}
|
|
|
|
fun testPostfixWithCall(n: Nothing) {
|
|
operator fun Nothing.inc(): Nothing = this
|
|
<!VAL_REASSIGNMENT!>n<!><!UNREACHABLE_CODE!>++<!>
|
|
}
|
|
|
|
fun testPostfixSpecial() {
|
|
todo()<!UNNECESSARY_NOT_NULL_ASSERTION, UNREACHABLE_CODE!>!!<!>
|
|
}
|
|
|
|
fun todo(): Nothing = throw Exception()
|