-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic classes inline setter in other file messes up something in the compilation server. #9358
Comments
Oooh a reproducible compiler cache error :D |
This is quite confusing... the result of the generic expansion is correct on the second run:
But the inliner receives a field with a different expression:
Note how the |
That took me forever, but I finally found it. It has a certain idiotic beauty to it: The server persists When @kLabz We should check if there are any other instances of |
* change return of build_instance to record * also rename * also seperate * also bring back typedef deprecation check * alsp keep special cases in the right place * mess around * avoid some work if we need no params anyway * make @:generic inference work again * remove Generic_Exception * push expected type before loading instance closes HaxeFoundation#3864 * expand generic types on field call candidate when expanding generic function closes HaxeFoundation#5482 * build generic parents as well closes HaxeFoundation#6761 * inherit `@:autoBuild` to generic instance closes HaxeFoundation#5536 * also inherit @:keepSub while we're at it closes HaxeFoundation#6500 * deal with KExpr in generic classes properly closes HaxeFoundation#7574 * don't inherit cf_expr_unoptimized to generic instances closes HaxeFoundation#9358 * reroute FClosure in map_expr_type closes HaxeFoundation#9395 * inherit cl_using to generic instances closes HaxeFoundation#10528 * set inherited flags on generic instance fields at the right time closes HaxeFoundation#11010 * I really don't care * wild guess * avoid the follow change
So, I have this strange situation where I have this two source file example:
src/Main.hx
:src/StateHandler.hx
build.hxml
The first time I compile it using the compilation server, it works great. When I modify the
Main.hx
-file (like just adding a line break in the end of the file). It gives me this error:When I modify the
StateHandler.hx
-file (again, only adding a line break at the end or something) it seems to reset the situation and compilation works great again until I modify theMain.hx
-file again. Also removing theinline
from theset_state
-setter, makes things run smoothly again.Also, so far this seems to happen only when I compile to hashlink...
I'm using the latest Haxe nightly.
4.1.0-rc.1+5d88aa62d
The text was updated successfully, but these errors were encountered: