Open miriti opened 1 year ago
This is quite funny, apparently it tries to report the Main class, but doesn't find one because there isn't one. The actual error is Module Main does not define type Main
. So there are two problems here:
haxe.macro.Error
Indeed. I've wrapped this code in a class and now it works!
class Main {
public static function main()
trace(Sys.programPath());
}
Haxe v4.2.5
Main.hx:
Results in:
I'm getting the same result on both Mac (M1) and Linux (amd64).