File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2961,7 +2961,7 @@ object Parsers {
29612961 if in.token == RPAREN && ! prefix && ! impliedMods.is(Given ) then Nil
29622962 else
29632963 val clause =
2964- if prefix && ! isIdent(nme.using) then param() :: Nil
2964+ if prefix && ! isIdent(nme.using) && ! isIdent(nme.erased) then param() :: Nil
29652965 else
29662966 paramMods()
29672967 if givenOnly && ! impliedMods.is(Given ) then
Original file line number Diff line number Diff line change 1+ import language .experimental .erasedTerms
2+ import scala .compiletime .erasedValue
3+ type UnivEq [A ]
4+ object UnivEq :
5+ erased def force [A ]: UnivEq [A ] = erasedValue
6+ extension [A ](erased proof : UnivEq [A ])
7+ inline def univEq (a : A , b : A ): Boolean =
8+ a == b
You can’t perform that action at this time.
0 commit comments