Files
kotlin-fork/js/js.translator/testData/examples/cases/newInstanceDefaultConstructor.kt
T
2014-03-11 20:04:00 +04:00

12 lines
163 B
Kotlin

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