Open piacenti opened 2 years ago
I haven't looked at the implementation but may be worth turning the interface definition of fun clone()
to fun clone(vararg params:Any?)
once identified situations where it is implemented with different number of arguments.
π Version 0.5.8-rc.4
π» Code or Package Name: @amcharts/amcharts4
π Actual behavior
running
dukat core.d.ts
from the amcharts folder generates kotlin full of compiler errors. Some of them seem to stem from inheritance where an interface expects a functionclone()
to be implemented while a TS subclass implements that by doingclone(id:String)
. There are also errors around subclass variables that use a subtype of what the parent expects which the compiler takes as an error. Example:This class has both errors mentioned above. It doesn't implement
clone()
as expected by Kotlin (although it is implemented asclone(id:String)
by a parent class). It usesoverride var _properties: BlurFilterProperties
which overrides the parentopen var _properties: FilterProperties
whereBlurFilterProperties
is an interface that extends theFilterProperties
interface. The compiler doesn't like the use ofBlurFilterProperties
there. There are several other issues around generics.π Expected behavior
Get code that can be compiled