HaxeFoundation / HaxeFoundation/haxe

[analyzer] Some mess with something

Open
#7,765 3 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-analyzer
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
class Main {
@:analyzer(full_debug)
static function main() {
new Main(0).add(pipe(new Main(1))).add(pipe(new Main(2)));
}

@:pure(false) function add(m:Main) return this;

function new(i:Int) { }

static inline function pipe(m:Main) return m;
}
```

Generated JS:

```js
Main.main = function() {
var m = new Main(2);
new Main(0).add(new Main(1)).add(m);
};
```

C'est la merde...

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.