Skip to content

Commit 924672b

Browse files
committed
Fix followingIsGivenSig
1 parent b3a989f commit 924672b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ object Parsers {
944944
else if knownTypeNames.contains(suffixName.toTypeName) then
945945
true
946946
else if knownTypeNames.contains(prefixName.toTypeName) then
947-
true
947+
false
948948
else
949949
// we have one of the following
950950
//
@@ -3587,7 +3587,7 @@ object Parsers {
35873587
accept(ARROW)
35883588
val vparams = params match
35893589
case (_: ValDef) :: _ =>
3590-
params.asInstanceOf[List[ValDef]].map(_.withFlags(Given))
3590+
params.asInstanceOf[List[ValDef]].map(_.withFlags(Param | Given))
35913591
case _ =>
35923592
params.map(makeSyntheticParameter(nextIdx, _, Param | Synthetic | Given))
35933593
val (vparamss1, parents) = givenHead()

0 commit comments

Comments
 (0)