JS: don't write native superclass to metadata. Fix KT-15007
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
@native open class A
|
||||
|
||||
interface I
|
||||
|
||||
class B : A(), I
|
||||
|
||||
open class C : A()
|
||||
|
||||
class D : C(), I
|
||||
|
||||
fun box(): String {
|
||||
var a: Any = A()
|
||||
if (a is I) return "fail1"
|
||||
|
||||
a = B()
|
||||
if (a !is I) return "fail2"
|
||||
|
||||
a = D()
|
||||
if (a !is I) return "fail3"
|
||||
|
||||
a = C()
|
||||
if (a is I) return "fail4"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user