Files
kotlin-fork/js/js.translator/testFiles/operatorOverloading/cases/postfixInc.kt
T
pTalanov 1896f7250f Refactor js.tests
Use Test#getName where possible
2012-05-05 20:37:02 +04:00

18 lines
214 B
Kotlin

package foo
class MyInt() {
var b = 0
fun inc() : MyInt {
val res = MyInt()
res.b++;
return res;
}
}
fun box() : Boolean {
var c = MyInt()
c++;
return (c.b == 1);
}