hxtsdgen icon indicating copy to clipboard operation
hxtsdgen copied to clipboard

abstract gen error

Open longde123 opened this issue 6 years ago • 2 comments

https://github.com/hamaluik/haxe-glm

eg @:expose("glm.Mat2") abstract Mat2(Mat2Base)

then ts

export namespace glm { class Mat2 { private constructor(); static _new(_r0c0: number, _r0c1?: number, _r1c0?: number, _r1c1?: number): glm.Mat2Base;

longde123 avatar Nov 21 '18 11:11 longde123

@longde123 Is this still happening for you with the latest hxtsdgen and Haxe versions? If so, could you describe what you'd expect to be generated instead?

fullofcaffeine avatar May 17 '19 19:05 fullofcaffeine

I'm afraid this kind of abstract can't be really exported: this requieres compiler awareness to rewrite code to use this kind of static methods to create/operate on the abstracted types.

elsassph avatar Jun 25 '19 10:06 elsassph