mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
15 lines
316 B
Kotlin
15 lines
316 B
Kotlin
fun testPrefix() {
|
|
fun Any.not() {}
|
|
<!UNREACHABLE_CODE!>!<!>todo()
|
|
}
|
|
|
|
fun testPostfixWithCall(n: Nothing) {
|
|
fun Nothing.inc(): Nothing = this
|
|
n<!UNREACHABLE_CODE!>++<!>
|
|
}
|
|
|
|
fun testPostfixSpecial() {
|
|
todo()<!UNNECESSARY_NOT_NULL_ASSERTION, UNREACHABLE_CODE!>!!<!>
|
|
}
|
|
|
|
fun todo() = throw Exception() |