JS: don't write native superclass to metadata. Fix KT-15007

This commit is contained in:
Alexey Andreev
2016-11-29 16:11:31 +03:00
parent e7d6711db3
commit 0302fcbb72
5 changed files with 61 additions and 2 deletions
@@ -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"
}