Skip to content

Commit c4a2532

Browse files
Sporarumsjrd
authored andcommitted
Apply class-shadowing.md
1 parent 21729d2 commit c4a2532

File tree

4 files changed

+1
-29
lines changed

4 files changed

+1
-29
lines changed

docs/_docs/reference/dropped-features/class-shadowing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ The issue is that the two `Ops` classes _look_ like one overrides the
2929
other, but classes in Scala 2 cannot be overridden. To keep things clean
3030
(and its internal operations consistent) the Scala 3 compiler forces you
3131
to rename the inner classes so that their names are different.
32-
33-
[More details](./class-shadowing-spec.md)

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)