HaxeFoundation / HaxeFoundation/haxe

Expressions passed by --macro should be parsed in macro context with -D macro

Open
#4,543 3 comments 0 reactions 0 assignees View on GitHub
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

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.