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 {
2961
2961
if in.token == RPAREN && ! prefix && ! impliedMods.is(Given ) then Nil
2962
2962
else
2963
2963
val clause =
2964
- if prefix && ! isIdent(nme.using) then param() :: Nil
2964
+ if prefix && ! isIdent(nme.using) && ! isIdent(nme.erased) then param() :: Nil
2965
2965
else
2966
2966
paramMods()
2967
2967
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