HaxeFoundation / HaxeFoundation/haxe

Array expression reification for function arguments

Open
#5,680 4 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

With haxe version 3.2.1, I tried writing the following macro:

```
import haxe.macro.Expr;

class Test {
static macro function fn(args: Array) {
return macro function ($a{args}) {};
}
}
```

However, this failed with the following compile errors:

```
Test.hx:5: characters 29-30 : Unexpected {
Test.hx:5: characters 30-34 : Missing ;
Test.hx:5: characters 35-36 : Unexpected )
```

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.