Files
kotlin-fork/js/js.translator/testData/box/examples/newInstanceDefaultConstructor.kt
T
2016-09-29 12:00:44 +03:00

12 lines
163 B
Kotlin
Vendored

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