Files
kotlin-fork/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.kt.txt
T
Nikolay Lunyak 247f5529d2 [FIR] KT-57809: Allow external constructors without arguments
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
2023-04-11 08:15:44 +00:00

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"
}