File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1453,7 +1453,7 @@ object Parsers {
1453
1453
}
1454
1454
1455
1455
def capturesAndResult (core : () => Tree ): Tree =
1456
- if in.token == LBRACE && in.offset == in.lastOffset
1456
+ if Feature .ccEnabled && in.token == LBRACE && in.offset == in.lastOffset
1457
1457
then CapturesAndResult (captureSet(), core())
1458
1458
else core()
1459
1459
@@ -1685,7 +1685,7 @@ object Parsers {
1685
1685
* or followed by a token that cannot start an infix type.
1686
1686
* Otherwise it is treated as an infix operator.
1687
1687
*/
1688
- private def isTrailingUpArrow =
1688
+ private def isCaptureUpArrow =
1689
1689
val ahead = in.lookahead
1690
1690
ahead.token == LBRACE
1691
1691
|| ahead.isIdent(nme.PUREARROW )
@@ -1699,7 +1699,7 @@ object Parsers {
1699
1699
refinedTypeRest(atSpan(startOffset(t)) {
1700
1700
RefinedTypeTree (rejectWildcardType(t), refinement(indentOK = true ))
1701
1701
})
1702
- else if in.isIdent(nme.UPARROW ) && isTrailingUpArrow then
1702
+ else if Feature .ccEnabled && in.isIdent(nme.UPARROW ) && isCaptureUpArrow then
1703
1703
val upArrowStart = in.offset
1704
1704
in.nextToken()
1705
1705
def cs =
You can’t perform that action at this time.
0 commit comments