Files
kotlin-fork/js/js.translator/testFiles/mergeEcma/cases/methodInClass.kt
T
2013-09-17 21:43:24 +04:00

14 lines
184 B
Kotlin

package foo
class A {
fun foo(): Int {
return 1
}
}
fun box(): String {
val a = A()
if (a.foo() != 1) return "a.foo() != 1, it: ${a.foo()}"
return "OK"
}