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

[specification] Commentary contains wrong statement about inheritance #3264

Open
eernstg opened this issue Aug 11, 2023 · 1 comment
Open
Labels
bug There is a mistake in the language specification or in an active document specification

Comments

@eernstg
Copy link
Member

eernstg commented Aug 11, 2023

The language specification says

A class does not inherit members from its superinterfaces.
However, its implicit interface does.

which is wrong. It should say 'from its non-superclass superinterfaces', and it should probably say 'class or mixin class' etc.

@eernstg eernstg added bug There is a mistake in the language specification or in an active document specification labels Aug 11, 2023
@lrhn
Copy link
Member

lrhn commented Aug 12, 2023

If we introduce the concept in the spec, it can say "from its declared superinterfaces", which are only the ones syntactically in the implements clause.
(The extends and with clause types are called "declared superclass" and "declared mixins").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a mistake in the language specification or in an active document specification
Projects
None yet
Development

No branches or pull requests

2 participants