Skip to content

Commit d23075b

Browse files
committed
Simplify erased parameter syntax
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.
1 parent 6a9bea8 commit d23075b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ object Parsers {
16311631
() => funParam(in.offset, imods))
16321632
case t =>
16331633
def funArg() =
1634-
addErased()
1634+
erasedArgs.addOne(false)
16351635
funArgType()
16361636
commaSeparatedRest(t, funArg)
16371637
accept(RPAREN)

0 commit comments

Comments
 (0)