JS: tests for KT-7357: extension functions from external KJS library couldn't be called in some cases

This commit is contained in:
Michael Nedzelsky
2015-04-09 13:06:15 +03:00
parent 66aa15f470
commit 6842c98285
8 changed files with 73 additions and 2 deletions
@@ -0,0 +1,17 @@
package foo
import library.sample.*
import kotlin.js.Date
var ok = "FAIL"
fun main(args: Array<String>) {
val x = ClassA().value
if (x == 100) {
ok = "OK"
}
val date = Date()
println(date.extFun())
}
fun box(): String = ok