Skip to content

Commit 781656a

Browse files
committed
Mark cap params with flag
1 parent 468da87 commit 781656a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -3564,8 +3564,9 @@ object Parsers {
35643564

35653565
def typeOrCapParam(): TypeDef =
35663566
val start = in.offset
3567-
val mods = annotsAsMods() | Param
3567+
var mods = annotsAsMods() | Param
35683568
if isCapKw then
3569+
mods |= CaptureParam
35693570
in.nextToken()
35703571
capParam(start, mods)
35713572
else typeParam(start, mods)

0 commit comments

Comments
 (0)