12 lines
314 B
Plaintext
12 lines
314 B
Plaintext
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"
|
|
} |