Skip to content

Commit e81163e

Browse files
committed
Change tests reflecting changes in import handling
(I'm not sure that change in importAssignment is OK)
1 parent ba40af7 commit e81163e

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

compiler/test/data/typescript/import/importAssignment/importAssignment.d.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@ import org.w3c.performance.*
6262
import org.w3c.workers.*
6363
import org.w3c.xhr.*
6464

65-
external interface InterfaceA
65+
external interface InterfaceA
66+
67+
external interface InterfaceB {
68+
fun ping(): InterfaceC
69+
}
70+
71+
external interface InterfaceC

compiler/test/data/typescript/importAs/importAs.d.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ external fun createPipable(): Pipable
3232
external fun createYetAnotherPipable(): Pipable
3333

3434
// ------------------------------------------------------------------------------------------
35-
// [test] index._computable.module__computable.kt
36-
@file:JsModule("_computable")
35+
// [test] index._transformable.internalApi.module__transformable.kt
36+
@file:JsModule("_transformable")
3737
@file:JsNonModule
3838
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
39-
package _computable
39+
package _transformable.internalApi
4040

4141
import kotlin.js.*
4242
import kotlin.js.Json
@@ -53,18 +53,14 @@ import org.w3c.performance.*
5353
import org.w3c.workers.*
5454
import org.w3c.xhr.*
5555

56-
external open class Computable {
57-
open fun compute()
58-
}
59-
60-
external interface Pipable
56+
external interface TransformOptions
6157

6258
// ------------------------------------------------------------------------------------------
63-
// [test] index._transformable.internalApi.module__transformable.kt
64-
@file:JsModule("_transformable")
59+
// [test] index._computable.module__computable.kt
60+
@file:JsModule("_computable")
6561
@file:JsNonModule
6662
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
67-
package _transformable.internalApi
63+
package _computable
6864

6965
import kotlin.js.*
7066
import kotlin.js.Json
@@ -81,4 +77,8 @@ import org.w3c.performance.*
8177
import org.w3c.workers.*
8278
import org.w3c.xhr.*
8379

84-
external interface TransformOptions
80+
external open class Computable {
81+
open fun compute()
82+
}
83+
84+
external interface Pipable

0 commit comments

Comments
 (0)