mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
23 lines
347 B
Kotlin
23 lines
347 B
Kotlin
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() = null!!
|
|
|
|
class A {
|
|
fun plus(<!UNUSED_PARAMETER!>a<!>: A): Nothing = throw Exception()
|
|
}
|
|
|
|
fun bar() {} |