Files
kotlin-fork/js/js.translator/testFiles/native/cases/kt1519.kt
T
2012-06-15 15:08:40 +04:00

19 lines
239 B
Kotlin

package foo
native
class Wow() {
val x : Int = js.noImpl
val y : Int = js.noImpl
}
native
fun Wow.sum() : Int = js.noImpl
fun Wow.dblSum() : Int {
return 2 * sum()
}
fun box() : Boolean {
return (Wow().dblSum() == 6)
}