HaxeFoundation / HaxeFoundation/haxe
[macro] `var ...` used as a value
Open
bug
platform-macro
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```haxe
class Main {
public static macro function a():haxe.macro.Expr {
var foo = "a" + var bar;
trace(foo);
return macro 0;
}
public static function main():Void a();
}
```
Prints `anull`, but it should result in an error like: `Cannot use this expression as value`
Contributor guide
Assessment
This issue has not been assessed yet.