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