Fix tests after introducing exlcusions to default imports of kotlin.js package.

This commit is contained in:
Ilya Gorbunov
2017-01-28 09:18:48 +03:00
parent 33f3106157
commit 38b79a51d5
11 changed files with 24 additions and 10 deletions
@@ -1,7 +1,12 @@
import kotlin.js.json
import kotlin.js.Json
import kotlin.js.JSON
import kotlin.js.undefined
fun main(args: Array<String>) {
val a: Json? = null
val a: dynamic = undefined
val b = JSON.stringify(a)
val j: Json = json("a" to 1)
}
// For KT-3620 Don't auto-import kotlin.js.* and remove in `optimize imports`
@@ -1,5 +1,10 @@
import kotlin.js.Json
import kotlin.js.json
fun main(args: Array<String>) {
val a: Json? = null
val a: dynamic = undefined
val b = JSON.stringify(a)
val j: Json = json("a" to 1)
}
// For KT-3620 Don't auto-import kotlin.js.* and remove in `optimize imports`
@@ -0,0 +1,4 @@
Additional checking of reference Getter: JSON
Additional checking of reference KtSimpleNameReference: JSON
Additional checking of reference Getter: undefined
Additional checking of reference KtSimpleNameReference: undefined