HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.15k stars 656 forks source link

"Can only extend structures" typing order issue with `--macro include` #8177

Open Gama11 opened 5 years ago

Gama11 commented 5 years ago

This is what I got when isolating the weird OS-dependent language-server-protocol-haxe CI failure I was debugging with @nadako yesterday.

source/A.hx:

import B;

typedef A = {}

source/B.hx:

import A;

typedef B = A & {}

typedef C = {
    var ?b:B;
}

build.hxml

-cp source
--macro include("", true, null, ["source"])
>haxe build.hxml
source/B.hx:3: characters 13-19 : Can only extend structures

Some very strange effects here:

Gama11 commented 5 years ago

Note: this is probably related to, or maybe even the same issue as the display issue in https://github.com/HaxeFoundation/haxe/issues/7937.

RealyUniqueName commented 5 years ago

Cannot reproduce with the latest dev Haxe

Gama11 commented 5 years ago

Still reproduces for me. As mentioned, this seems to be OS-dependent or something.

RealyUniqueName commented 5 years ago

Maybe you want to reopen https://github.com/HaxeFoundation/haxe/issues/7937 too

Gama11 commented 5 years ago

Way ahead of you. :D