mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
23 lines
365 B
Kotlin
Vendored
23 lines
365 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(<!UNUSED_PARAMETER!>a<!>: A): Nothing = throw Exception()
|
|
}
|
|
|
|
fun bar() {} |