HaxeFoundation / HaxeFoundation/haxe

full qualified access not possible from same module

Open
#7,372 11 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.