ec4cbfef59
Implementation for PSI only
23 lines
342 B
Kotlin
Vendored
23 lines
342 B
Kotlin
Vendored
package c
|
|
|
|
fun test1() {
|
|
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>r<!>: Nothing =<!> null!!
|
|
}
|
|
|
|
fun test2(a: A) {
|
|
a + a
|
|
<!UNREACHABLE_CODE!>bar()<!>
|
|
}
|
|
|
|
fun test3() {
|
|
null!!
|
|
<!UNREACHABLE_CODE!>bar()<!>
|
|
}
|
|
|
|
fun throwNPE(): Nothing = null!!
|
|
|
|
class A {
|
|
operator fun plus(a: A): Nothing = throw Exception()
|
|
}
|
|
|
|
fun bar() {} |