haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Unit shadowing

Open Simn opened this issue 7 months ago • 1 comments

https://github.com/HaxeFoundation/haxe/commit/a1535c56da11b06ce6646bc6cfa99eacb5213681 caused a problem in a situation where we have a Unit.hx type that we want to resolve from the same package or a child package. I didn't consider that import resolution takes priority here.

I'd really like this type to always be available, but we'll have to find a way to implement this with a lower priority so that it is only checked after all other options have been exhausted. This might actually be a bit tricky for the Unit value itself because it currently relies on the enum being imported to make the constructor available.

Simn avatar Apr 11 '25 08:04 Simn