Skip to content

Commit 0bd9739

Browse files
committed
Disallow : after infix operators
Two reasons: 1. It would complicate the syntax 2. It looks weird anyway
1 parent db19cfd commit 0bd9739

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ object Parsers {
934934
val op = if (isType) typeIdent() else termIdent()
935935
val top1 = reduceStack(base, top, precedence(op.name), !op.name.isRightAssocOperatorName, op.name, isType)
936936
opStack = OpInfo(top1, op, in.offset) :: opStack
937-
colonAtEOLOpt()
938937
newLineOptWhenFollowing(canStartOperand)
939938
if (maybePostfix && !canStartOperand(in.token)) {
940939
val topInfo = opStack.head

0 commit comments

Comments
 (0)