mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
23 lines
357 B
Kotlin
Vendored
23 lines
357 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// FILE: test.kt
|
|
// WITH_RUNTIME
|
|
|
|
import kotlin.test.*
|
|
|
|
private operator fun A.inc() = A()
|
|
|
|
fun box(): String {
|
|
assertFailsWith<IllegalArgumentException> {
|
|
var aNull = A.n()
|
|
aNull++
|
|
}
|
|
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: A.java
|
|
public class A {
|
|
public static A n() { return null; }
|
|
}
|