HaxeFoundation / HaxeFoundation/haxe

Compilation server(haxe 5.0.0-preview.1): Context.unify() returns wrong result

Open
#12,349 10 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

Stuff: `haxe 5.0.0-preview.1`
I have a macro function which calls the code below:
```
trace("TYPES: ", type1, type2);
final unified = Context.unify(type1, type2);
trace("UNIFIED: ", unified);
```
Compilation server gives error result of unify function after any source code editing:

Image

After restarting haxe server the result is correct:

Image

P.S. `haxe 4.3.7` compilation server works fine.

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.