mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
12 lines
218 B
Kotlin
Vendored
12 lines
218 B
Kotlin
Vendored
class MyClass
|
|
|
|
operator fun MyClass?.inc(): MyClass? = null
|
|
|
|
public fun box() : String {
|
|
var i : MyClass?
|
|
i = MyClass()
|
|
val j = ++i
|
|
|
|
return if (j == null && null == i) "OK" else "fail i = $i j = $j"
|
|
}
|