@@ -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
1717Implicit 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
4242some other type, all implicit parameter types must be explicitly given, and
4343the 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
4545type of ` e ` . ` T ` must be equivalent to a type which does not refer to any of
4646the implicit parameters ` xi ` .
4747
@@ -63,7 +63,7 @@ that case, a fresh name for the parameter is chosen arbitrarily.
6363Note: The closing paragraph of the [ Anonymous Functions section] (https://www
6464.scala-lang.org/files/archive/spec/2.12/06-expressions.html#anonymous-
6565functions) of the Scala 2.12 is subsumed by implicit function types and should
66- be remove .
66+ be removed .
6767
6868Anonymous implicit functions ` implicit (x1: T1, ..., xn: Tn) => e ` are
6969automatically inserted around any expression ` e ` whose expected type is
0 commit comments