Skip to content

Commit 5913c89

Browse files
julienrfsjrd
authored andcommitted
Apply auto-apply to the Spec
- Move `auto-apply.md` from TODOreference to APPLIEDreference with minor changes - Remove the related content from the specification - Also move the index file `dropped-features.md`
1 parent d9dfc21 commit 5913c89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ A member definition ´M´ _matches_ a member definition ´M'´, if ´M´ and ´M
186186

187187
1. Neither ´M´ nor ´M'´ is a method definition.
188188
2. ´M´ and ´M'´ define both monomorphic methods with equivalent argument types.
189-
3. ´M´ defines a parameterless method and ´M'´ defines a method with an empty parameter list `()` or _vice versa_.
189+
3. ´M´ is defined in Java and defines a method with an empty parameter list `()` and ´M'´ defines a parameterless method.
190190
4. ´M´ and ´M'´ define both polymorphic methods with equal number of argument types ´\overline T´, ´\overline T'´ and equal numbers of type parameters ´\overline t´, ´\overline t'´, say, and ´\overline T' = [\overline t'/\overline t]\overline T´.
191191

192192
<!--
@@ -257,7 +257,7 @@ Another restriction applies to abstract type members:
257257
An abstract type member with a [volatile type](03-types.html#volatile-types) as its upper bound may not override an abstract type member which does not have a volatile upper bound.
258258

259259
A special rule concerns parameterless methods.
260-
If a parameterless method defined as `def ´f´: ´T´ = ...` or `def ´f´ = ...` overrides a method of type ´()T'´ which has an empty parameter list, then ´f´ is also assumed to have an empty parameter list.
260+
If a parameterless method defined as `def ´f´: ´T´ = ...` or `def ´f´ = ...` overrides a method defined in Java of type ´()T'´ which has an empty parameter list, then ´f´ is also assumed to have an empty parameter list.
261261

262262
An overriding method inherits all default arguments from the definition in the superclass.
263263
By specifying default arguments in the overriding method it is possible to add new defaults (if the corresponding parameter in the superclass does not have a default) or to override the defaults of the superclass (otherwise).

docs/_spec/TODOreference/dropped-features/auto-apply.md renamed to docs/_spec/APPLIEDreference/dropped-features/auto-apply.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ In Scala 3, this idiom is an error.
1616

1717
```scala
1818
next
19-
^
20-
missing arguments for method next
19+
^^^^
20+
method next must be called with () argument
2121
```
2222

2323
In Scala 3, the application syntax has to follow exactly the parameter

0 commit comments

Comments
 (0)