8000 Avoid adaptation of argument list · scala/scala-async@48e2fe9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48e2fe9

Browse files
committed
Avoid adaptation of argument list
1 parent f46d4d8 commit 48e2fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scala/async/internal/ExprBuilder.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ trait ExprBuilder {
615615
case _ if t.tpe != null => t.tpe
616616
case Try(body, Nil, _) => tpeOf(body)
617617
case Block(_, expr) => tpeOf(expr)
618-
case Literal(Constant(value)) if value == () => definitions.UnitTpe
618+
case Literal(Constant(value)) if value == (()) => definitions.UnitTpe
619619
case Return(_) => definitions.NothingTpe
620620
case _ => NoType
621621
}
@@ -643,7 +643,7 @@ trait ExprBuilder {
643643
def literalUnit = Literal(Constant(())) // a def to avoid sharing trees
644644

645645
def toList(tree: Tree): List[Tree] = tree match {
646-
case Block(stats, Literal(Constant(value))) if value == () => stats
646+
case Block(stats, Literal(Constant(value))) if value == (()) => stats
647647
case _ => tree :: Nil
648648
}
649649

0 commit comments

Comments
 (0)
0