247f5529d2
The constructor with the required parameters may not have been defined, and since JS/IR box tests pass, it seems, we don't have to resolve into anything meaningful. We could generate the appropriate constructor like dynamic type members are generated, but, again, K1 IR doesn't even contain a delegating constructor call. ^KT-57809 Fixed
38 lines
409 B
Kotlin
Vendored
38 lines
409 B
Kotlin
Vendored
package foo
|
|
|
|
open external class A {
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun foo(): String
|
|
|
|
}
|
|
|
|
open external class B : A {
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun bar(): String
|
|
|
|
}
|
|
|
|
class C : B {
|
|
constructor() /* primary */ {
|
|
super/*B*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fun box(): String {
|
|
val c: C = C()
|
|
return "OK"
|
|
}
|