HaxeFoundation / HaxeFoundation/haxe
Expressions passed by --macro should be parsed in macro context with -D macro
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
``` haxe
class ExprMacro {
public static function traceExpr(expr:haxe.macro.Expr):Void {
trace(expr);
}
}
```
```
$ haxe --macro "ExprMacro.traceExpr(macro 1)"
--macro:1: character 0 : { min : Int, max : Int, file : String } should be haxe.macro.Position
--macro:1: character 0 : Parameter should be a constant
```
Contributor guide
Assessment
This issue has not been assessed yet.