HaxeFoundation / HaxeFoundation/haxe
full qualified access not possible from same module
Open
type-system
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Full qualified access to a public static function is not possible at the moment when the module type is a typedef. My problem is currently that the code is macro generated and should work from every module.
using something like std.MyType.X.main is not possible either. (is there a way to solve this from a macro?).
File MyType.hx
```haxe
typedef MyType = { name : String };
class X {
public static function main () {
MyType.X.main; // error MyType is not a value
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.