Skip to content
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

Typeload typedef assert failure with the compilation server #5511

Closed
jonasmalacofilho opened this issue Aug 9, 2016 · 3 comments
Closed

Comments

@jonasmalacofilho
Copy link
Member

jonasmalacofilho commented Aug 9, 2016

import sys.db.Object;

typedef A = Int;

class Main {
    static function main()
    {
        trace('hi');
    }
}

Results in:

File "src/typing/typeload.ml", line 3302, characters 15-21: Assertion failed

To reproduce, compile using the compilation cache twice and update the file (i.e. comment the trace) before the second run.

Note:

  • the typedef is obviously necessary for that assert to fail, but what the typedef defines does not seem to matter
@jonasmalacofilho
Copy link
Member Author

jonasmalacofilho commented Aug 12, 2016

Update: bisected and the issue seems to be caused by the changes introduced in 7e9e0e9 and f21f47e.

@jonasmalacofilho jonasmalacofilho changed the title Typeload assert failed with sys.db.Object, unrelated typedef and compilation server Typeload typedef assert failure with the compilation server Aug 12, 2016
@Simn
Copy link
Member

Simn commented Sep 28, 2016

This still reproduces.

@Simn Simn modified the milestone: 4.0 Jan 9, 2017
@Simn Simn modified the milestones: Release 4.0, Bugs Apr 17, 2018
@RealyUniqueName
Copy link
Member

Not reproducible with the latest Haxe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants