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 2f34c06 commit 8cb0d7cCopy full SHA for 8cb0d7c
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -3491,7 +3491,7 @@ object Parsers {
3491
val hkparams = typeParamClauseOpt(ParamOwner.Hk)
3492
val bounds =
3493
if paramOwner.acceptsCtxBounds then typeAndCtxBounds(name)
3494
- else if paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
+ else if sourceVersion.isAtLeast(`3.6`) && paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
3495
else typeBounds()
3496
TypeDef(name, lambdaAbstract(hkparams, bounds)).withMods(mods)
3497
}
0 commit comments