Skip to content

Commit 1d07a22

Browse files
Address review
1 parent 10ae0c3 commit 1d07a22

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/docs/reference/dependent-function-types-spec.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Initial implementation in (#3464)[https://github.com/lampepfl/dotty/pull/3464].
77

88
## Syntax
99

10-
FunArgTypes ::= InfixType
11-
| ‘(’ [ FunArgType {‘,’ FunArgType } ] ‘)’
12-
| '(' TypedFunParam {',' TypedFunParam } ')'
13-
TypedFunParam ::= id ':' Type
10+
FunArgTypes ::= InfixType
11+
| ‘(’ [ FunArgType {‘,’ FunArgType } ] ‘)’
12+
| '(' TypedFunParam {',' TypedFunParam } ')'
13+
TypedFunParam ::= id ':' Type
1414

1515
Dependent function types associate to the right, e.g.
1616
`(s: S) ⇒ (t: T) ⇒ U` is the same as `(s: S) ⇒ ((t: T) ⇒ U)`.

docs/docs/reference/dropped/class-shadowing-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Spec diff: in section [5.1.4 Overriding](https://www.scala-lang.org/files/archiv
77

88
> Why do we want to make this change to the language?
99
10-
tbd
10+
Class shadowing is irregular compared to other types of overrides. Indeed, inner classes are not actually overriden but simply shadowed.
1111

1212

1313
> How much existing code is going to be affected?

docs/docs/reference/implicit-function-types-spec.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Initial implementation in (#1775)[https://github.com/lampepfl/dotty/pull/1775].
77

88
## Syntax
99

10-
Type ::= [`implicit'] FunArgTypes `=>' Type
11-
| HkTypeParamClause `=>' Type
12-
| InfixType
13-
Expr ::= [`implicit'] FunParams `=>' Expr
14-
BlockResult ::= [`implicit'] FunParams `=>' Block
15-
| Expr1
10+
Type ::= [`implicit'] FunArgTypes `=>' Type
11+
| HkTypeParamClause `=>' Type
12+
| InfixType
13+
Expr ::= [`implicit'] FunParams `=>' Expr
14+
BlockResult ::= [`implicit'] FunParams `=>' Block
15+
| Expr1
1616

1717
Implicit function types associate to the right, e.g.
1818
`implicit S ⇒ implicit T ⇒ U` is the same as `implicit S ⇒ (implicit T ⇒ U)`.
@@ -41,7 +41,7 @@ the type `Ti` of any of the parameters `xi` can be omitted, in which case `Ti
4141
= Si` is assumed. If the expected type of the anonymous implicit function is
4242
some other type, all implicit parameter types must be explicitly given, and
4343
the expected type of `e` is undefined. The type of the anonymous implicit
44-
function is `scala.ImplicitFunctionN[S1, ...,Sn, T]`, where `T` is the packed
44+
function is `scala.ImplicitFunctionN[S1, ...,Sn, T]`, where `T` is the widened
4545
type of `e`. `T` must be equivalent to a type which does not refer to any of
4646
the implicit parameters `xi`.
4747

@@ -63,7 +63,7 @@ that case, a fresh name for the parameter is chosen arbitrarily.
6363
Note: The closing paragraph of the [Anonymous Functions section](https://www
6464
.scala-lang.org/files/archive/spec/2.12/06-expressions.html#anonymous-
6565
functions) of the Scala 2.12 is subsumed by implicit function types and should
66-
be remove.
66+
be removed.
6767

6868
Anonymous implicit functions `implicit (x1: T1, ..., xn: Tn) => e` are
6969
automatically inserted around any expression `e` whose expected type is

0 commit comments

Comments
 (0)