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

15 lines
180 B
Kotlin

package foo
class MyInt(i : Int) {
var b = i
fun inc() : MyInt {
b++;
return this;
}
}
fun box() : Boolean {
var t = MyInt(0)
t++;
return (t.b == 1)
}