Skip to content

Commit a46aab1

Browse files
committed
Apply class-shadowing.md
1 parent 9db5c9e commit a46aab1

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

docs/_spec/05-classes-and-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ It inherits member `f` from trait `C` and member `g` from trait `B`.
241241
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.
242242
In this case the binding of the overriding member ´M´ must [subsume](03-types.html#conformance) the binding of the overridden member ´M'´.
243243
Furthermore, the following restrictions on modifiers apply to ´M´ and ´M'´:
244-
244+
- ´M'´ must not be a class.
245245
- ´M'´ must not be labeled `final`.
246246
- ´M´ must not be [`private`](#modifiers).
247247
- 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´.

docs/_spec/TODOreference/dropped-features/class-shadowing-spec.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)