benmerckx / genes

Generates split ES6 modules and Typescript definitions from Haxe modules.
43 stars 8 forks source link

Incorrect dts for parametrized static var in abstract #50

Open kevinresol opened 3 years ago

kevinresol commented 3 years ago
abstract Foo<T>(Int) {
  public static final INST: Foo<String> = null;
}

generated:

export declare class Foo_Impl_ {
    static INST: <T>number
}

Note the extraneous <T> before number is invalid syntax