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 is source-order-dependent #30

Open
zhiayang opened this issue Oct 12, 2019 · 0 comments
Open

Class inheritance is source-order-dependent #30

zhiayang opened this issue Oct 12, 2019 · 0 comments
Labels

Comments

@zhiayang
Copy link
Member

Basically, your base class must appear in the source code before your derived class. This will not work:

class A : B
{
    // ...
}

class B 
{
    // ...
}

Which is contrary to how the rest of the language works.

@zhiayang zhiayang added the bug label Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant