HaxeFoundation / HaxeFoundation/haxe

[js] haxe.Rest argument in inline new, compiler error

Open
#12,222 2 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

```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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.