mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
23 lines
251 B
Kotlin
Vendored
23 lines
251 B
Kotlin
Vendored
package c
|
|
|
|
fun test1() {
|
|
val r: Nothing = null!!
|
|
}
|
|
|
|
fun test2(a: A) {
|
|
a + a
|
|
bar()
|
|
}
|
|
|
|
fun test3() {
|
|
null!!
|
|
bar()
|
|
}
|
|
|
|
fun throwNPE(): Nothing = null!!
|
|
|
|
class A {
|
|
operator fun plus(a: A): Nothing = throw Exception()
|
|
}
|
|
|
|
fun bar() {} |