Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
548 stars 44 forks source link

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

Closed JSMonk closed 2 years ago

JSMonk commented 2 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