Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Wojciech Mazur <[email protected]>
  • Loading branch information
KacperFKorban and WojciechMazur authored Nov 25, 2024
1 parent 2f34c06 commit 8cb0d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3491,7 +3491,7 @@ object Parsers {
val hkparams = typeParamClauseOpt(ParamOwner.Hk)
val bounds =
if paramOwner.acceptsCtxBounds then typeAndCtxBounds(name)
else if paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
else if sourceVersion.isAtLeast(`3.6`) && paramOwner == ParamOwner.Type then typeAndCtxBounds(name)
else typeBounds()
TypeDef(name, lambdaAbstract(hkparams, bounds)).withMods(mods)
}
Expand Down

0 comments on commit 8cb0d7c

Please sign in to comment.