Skip to content

Commit

Permalink
Apply class-shadowing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Bernet committed Feb 6, 2023
1 parent 9db5c9e commit a46aab1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
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
26 changes: 0 additions & 26 deletions docs/_spec/TODOreference/dropped-features/class-shadowing-spec.md

This file was deleted.

0 comments on commit a46aab1

Please sign in to comment.