Skip to content

Commit 156ec83

Browse files
committed
Address review comments
1 parent ed9f4b2 commit 156ec83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ object Parsers {
16731673
infixOps(t, canStartInfixTypeTokens, refinedTypeFn, Location.ElseWhere, ParseKind.Type,
16741674
isOperator = !followingIsVararg() && !isPureArrow)
16751675

1676-
/** RefinedType ::= WithType {[nl] (Refinement} [`^` CaptureSet]
1676+
/** RefinedType ::= WithType {[nl] Refinement} [`^` CaptureSet]
16771677
*/
16781678
val refinedTypeFn: Location => Tree = _ => refinedType()
16791679

tests/neg-custom-args/boxmap.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ def test[A <: Top, B <: Top] =
1616
def lazymap[A <: Top, B <: Top](b: Box[A])(f: A => B) =
1717
() => b[Box[B]]((x: A) => box(f(x)))
1818
val x0: (b: Box[A]) -> (f: A => B) -> (() -> Box[B]) = lazymap[A, B] // error
19-
val x: (b: Box[A]) -> (f: A => B) ->{b, f} (() -> Box[B]) = lazymap[A, B] // works
20-
val y: (b: Box[A]) -> (f: A => B) ->{cap} (() -> Box[B]) = lazymap[A, B] // works
19+
val x: (b: Box[A]) -> (f: A => B) -> (() ->{b, f} Box[B]) = lazymap[A, B] // works
20+
val y: (b: Box[A]) -> (f: A => B) -> (() ->{cap} Box[B]) = lazymap[A, B] // works
2121
()

0 commit comments

Comments
 (0)