[K/JS] Move global interface id state into an object to prevent interface ids reinitialization ^Fixed KT-55758
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user