Closed kevinresol closed 3 years ago
Fixed the case when importing types with reserved name. But it is still not fixed when the type is declared in current module.
This kinda happens with regular haxe too, if no namespaces are involved: https://try.haxe.org/#e99EE7b7
The question is which one to rename. One naive solution would be to emit @:native('GlobalType')
to $global.GlobalType
?
https://github.com/benmerckx/genes/blob/master/src/genes/Register.hx#L8
Added a failing test for #48