Skip to content

Commit 8cb0d7c

Browse files
Update compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Co-authored-by: Wojciech Mazur <[email protected]>
1 parent 2f34c06 commit 8cb0d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3491,7 +3491,7 @@ object Parsers {
34913491
val hkparams = typeParamClauseOpt(ParamOwner.Hk)
34923492
val bounds =
34933493
if paramOwner.acceptsCtxBounds then typeAndCtxBounds(name)
3494-
else if paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
3494+
else if sourceVersion.isAtLeast(`3.6`) && paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
34953495
else typeBounds()
34963496
TypeDef(name, lambdaAbstract(hkparams, bounds)).withMods(mods)
34973497
}

0 commit comments

Comments
 (0)