Skip to content

Commit

Permalink
Doc comment fix in Parser
Browse files Browse the repository at this point in the history
We did not allow `using` in function types for a long time.
  • Loading branch information
odersky committed May 25, 2023
1 parent 26170ec commit edeb4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1468,8 +1468,8 @@ object Parsers {
* PolyFunType ::= HKTypeParamClause '=>' Type
* | HKTypeParamClause ‘->’ [CaptureSet] Type -- under pureFunctions
* FunTypeArgs ::= InfixType
* | `(' [ [ ‘[using]’ ‘['erased'] FunArgType {`,' FunArgType } ] `)'
* | '(' [ ‘[using]’ ‘['erased'] TypedFunParam {',' TypedFunParam } ')'
* | `(' [ [ ‘['erased'] FunArgType {`,' FunArgType } ] `)'
* | '(' [ ‘['erased'] TypedFunParam {',' TypedFunParam } ')'
*/
def typ(): Tree =
val start = in.offset
Expand Down

0 comments on commit edeb4b8

Please sign in to comment.