[K/JS] Move global interface id state into an object to prevent interface ids reinitialization ^Fixed KT-55758

This commit is contained in:
Artem Kobzar
2023-01-09 20:56:19 +00:00
committed by Space Team
parent dc514fa396
commit 642bbd38ba
5 changed files with 50 additions and 14 deletions
@@ -0,0 +1,19 @@
// EXPECTED_REACHABLE_NODES: 1403
// MODULE_KIND: COMMON_JS
package foo
@JsExport
interface Foo
class Bar: Foo
fun box(): String {
val foo : Foo = Bar()
if(foo is Collection<*>) {
return "Fail: Foo is a Collection!"
}
return "OK"
}