We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a989f commit 924672bCopy full SHA for 924672b
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -944,7 +944,7 @@ object Parsers {
944
else if knownTypeNames.contains(suffixName.toTypeName) then
945
true
946
else if knownTypeNames.contains(prefixName.toTypeName) then
947
- true
+ false
948
else
949
// we have one of the following
950
//
@@ -3587,7 +3587,7 @@ object Parsers {
3587
accept(ARROW)
3588
val vparams = params match
3589
case (_: ValDef) :: _ =>
3590
- params.asInstanceOf[List[ValDef]].map(_.withFlags(Given))
+ params.asInstanceOf[List[ValDef]].map(_.withFlags(Param | Given))
3591
case _ =>
3592
params.map(makeSyntheticParameter(nextIdx, _, Param | Synthetic | Given))
3593
val (vparamss1, parents) = givenHead()
0 commit comments