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

Apply class-shadowing.md to the Spec #16839

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_spec/05-classes-and-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ It inherits member `f` from trait `C` and member `g` from trait `B`.
A member ´M´ of class ´C´ that [matches](#class-members) a non-private member ´M'´ of a base class of ´C´ is said to _override_ that member.
In this case the binding of the overriding member ´M´ must [subsume](03-types.html#conformance) the binding of the overridden member ´M'´.
Furthermore, the following restrictions on modifiers apply to ´M´ and ´M'´:

- ´M'´ must not be a class.
- ´M'´ must not be labeled `final`.
- ´M´ must not be [`private`](#modifiers).
- If ´M´ is labeled `private[´C´]` for some enclosing class or package ´C´, then ´M'´ must be labeled `private[´C'´]` for some class or package ´C'´ where ´C'´ equals ´C´ or ´C'´ is contained in ´C´.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ The issue is that the two `Ops` classes _look_ like one overrides the
other, but classes in Scala 2 cannot be overridden. To keep things clean
(and its internal operations consistent) the Scala 3 compiler forces you
to rename the inner classes so that their names are different.

[More details](./class-shadowing-spec.md)
26 changes: 0 additions & 26 deletions docs/_spec/TODOreference/dropped-features/class-shadowing-spec.md

This file was deleted.