Skip to content

Commit

Permalink
Simplify erased parameter syntax
Browse files Browse the repository at this point in the history
erased is not always a modifier on the parameter name. The syntax `erased Type` is dropped.
There's not really a need for this syntactic inconsistency.
  • Loading branch information
odersky committed Feb 11, 2024
1 parent 6a9bea8 commit d23075b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ object Parsers {
() => funParam(in.offset, imods))
case t =>
def funArg() =
addErased()
erasedArgs.addOne(false)
funArgType()
commaSeparatedRest(t, funArg)
accept(RPAREN)
Expand Down

0 comments on commit d23075b

Please sign in to comment.