HaxeFoundation / HaxeFoundation/haxe
Weird error about type parameters
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Repro case here:
https://github.com/kevinresol/haxe_issues/tree/issue_9058
The error I got is:
```
.haxelib/tink_core/1,24,0/src/tink/core/Future.hx:101: lines 101-109 : error: tink.core.Future.T should be Array
.haxelib/tink_core/1,24,0/src/tink/core/Future.hx:101: lines 101-109 : have: (..., (tink.core.Future.T) -> ..., ...) -> ...
.haxelib/tink_core/1,24,0/src/tink/core/Future.hx:101: lines 101-109 : want: (..., (Array<...>) -> ..., ...) -> ...
```
It is ok in 3.4.7, but not in haxe 4.
Rough investigation told me that somehow the recursive import caused the issue
(Reporter.hx imports Runner + Runner.hx imports Reporter). Breaking the loop fixed it.
Contributor guide
Assessment
This issue has not been assessed yet.