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

Generic classes not recognizing recursive definition #10245

Closed
Tezar opened this issue May 6, 2021 · 1 comment
Closed

Generic classes not recognizing recursive definition #10245

Tezar opened this issue May 6, 2021 · 1 comment

Comments

@Tezar
Copy link

Tezar commented May 6, 2021

Normally Haxe recognizes recursive definition with Recursive class compile time error. When using generic it leads to stackoverflow error instead.

@:generic
class Foo<T> extends Foo<T> {

}

On win64 build 4.2.1+bf9ff69 compiler sometimes hard crashed too, but I can't reproduce that with minimal example.

According to try.haxe.org it correctly recognizes the recursion in 3.4.7 but not in any of the 4+ versions including latest dev 2021-03-31 cf61913.

@RealyUniqueName RealyUniqueName added this to the Bugs milestone May 7, 2021
@Simn Simn modified the milestones: Bugs, Later Mar 24, 2023
@Simn
Copy link
Member

Simn commented Nov 15, 2023

This was fixed by 8bce1a1

@Simn Simn closed this as completed Nov 15, 2023
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

3 participants