mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
A set of tests for KT-7561 on codegen side, including exotic inc() functions(). #KT-7561 Fixed.
12 lines
209 B
Kotlin
Vendored
12 lines
209 B
Kotlin
Vendored
class MyClass
|
|
|
|
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"
|
|
}
|