HaxeFoundation / HaxeFoundation/haxe
[js] haxe.Rest argument in inline new, compiler error
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```js
class Test {
static function main() {
new S(10,10);
}
}
class S {
public inline function new(x:Int, y:Int, z:haxe.Rest) {}
}
```
Tested on latest Haxe
https://try.haxe.org/#7a11F6b3
Contributor guide
Research direction
Start by reproducing the linked Try Haxe example and the inline constructor call shown in the issue, targeting JavaScript. Trace how the compiler handles inline constructors with haxe.Rest arguments; done means the example compiles without the reported compiler error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100