U75957
07/21/2019, 8:48 AM/* generated by dukat */ external open class A {
open fun foo()
open fun foo(p: Int)
}
/* abstract or */ open class B : A() // <--- OK. No errors
class C : B() // <--- Error: JavaScript name foo is generated for different inherited members: fun foo(): Unit and fun foo(p: Int): Unit
What's wrong?[JB] Shagen
07/22/2019, 10:00 AMexternal open class A {
open fun foo(p: Int = definedExternally)
}
U75957
07/22/2019, 10:22 AMclass B : A()
compiles well. And everything worked without problems until I tried to add class C
U75957
07/22/2019, 10:30 AMU75957
07/22/2019, 10:41 AMexternal open class A {
fun foo()
open fun foo(p: Int)
}
I found that if only one method is marked with the modifier open
then everything is ok.
Although I still don’t understand why class B: A ()
works without workaround.bashor
07/22/2019, 10:56 AMbashor
07/22/2019, 10:58 AMU75957
07/22/2019, 11:13 AM