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

Class inheritance loop #1674

Open
hexagonrecursion opened this issue May 13, 2024 · 1 comment
Open

Class inheritance loop #1674

hexagonrecursion opened this issue May 13, 2024 · 1 comment

Comments

@hexagonrecursion
Copy link
Contributor

The compiler should reject class inheritance loops, but it does not.

  1. Compile this code (note: does not work if you skip this step):
public class Foo
{
}

public class Bar extends Foo
{
}

extern void New()
{
}
  1. Add extends Bar and compile again - the compilation is successful:
public class Foo extends Bar
{
}

public class Bar extends Foo
{
}

extern void New()
{
}

So far most attempts to extend this example either caused the game to hang or to crash.

@melex750
Copy link
Contributor

This is related to #1015 and others. Fixed in my WIP.

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

No branches or pull requests

2 participants