Files
kotlin-fork/js/js.translator/testFiles/examples/cases/newInstanceDefaultConstructor.jet
T
2012-02-27 21:55:58 +04:00

12 lines
152 B
Plaintext

class SimpleClass() {
fun foo() = 610
}
fun box() : String {
val c = SimpleClass()
if (c.foo() == 610) {
return "OK"
}
return "FAIL"
}