HaxeFoundation / HaxeFoundation/haxe

[macro] `var ...` used as a value

Open
#9,299 1 comment 1 reaction 0 assignees View on GitHub
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

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.