Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
557 stars 42 forks source link

fix(#414): apply type parameters to generic constructor before inserting inside a child class #451

Closed JSMonk closed 3 years ago

JSMonk commented 3 years ago

There is a problem with generic class constructors inserting.

class A<T> { constructor(arg: T }
class B extends A<string> {}

With current behavior, we just copy the constructor from class A to class B without any manipulation with type parameters. Those changes provide a type parameter replacement with the actual parameter before the constructor copying