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 3fd727d commit 20e942bCopy full SHA for 20e942b
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -4024,7 +4024,7 @@ object Parsers {
4024
case SEMI | NEWLINE | NEWLINES | COMMA | RBRACE | OUTDENT | EOF =>
4025
makeTypeDef(typeAndCtxBounds(tname))
4026
case _ if (staged & StageKind.QuotedPattern) != 0
4027
- || in.featureEnabled(Feature.modularity) && in.isColon =>
+ || sourceVersion.isAtLeast(`3.6`) && in.isColon =>
4028
4029
case _ =>
4030
syntaxErrorOrIncomplete(ExpectedTypeBoundOrEquals(in.token))
0 commit comments