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
@@ -1,8 +1,11 @@
package library.sample
import kotlin.js.Date
public fun pairAdd(p: Pair<Int, Int>): Int = p.first + p.second
public fun pairMul(p: Pair<Int, Int>): Int = p.first * p.second
public data class IntHolder(val value: Int)
public fun Date.extFun(): Int = 1000