mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
221 B
Kotlin
Vendored
12 lines
221 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 is MyClass && null == i) "OK" else "fail i = $i j = $j"
|
|
}
|