Files
kotlin-fork/compiler/testData/codegen/regressions/kt756.kt
T
2013-01-24 21:12:27 +04:00

12 lines
314 B
Kotlin

package demo_range
fun Int?.plus() : Int = this!!.plus()
fun Int?.dec() : Int = this!!.dec()
fun Int?.inc() : Int = this!!.inc()
fun Int?.minus() : Int = this!!.minus()
fun box() : String {
val x : Int? = 10
System.out?.println(x?.inv())// * x?.plus() * x?.dec() * x?.minus() as Number)
return "OK"
}