File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/scala/scala/async/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ trait ExprBuilder {
615
615
case _ if t.tpe != null => t.tpe
616
616
case Try (body, Nil , _) => tpeOf(body)
617
617
case Block (_, expr) => tpeOf(expr)
618
- case Literal (Constant (value)) if value == () => definitions.UnitTpe
618
+ case Literal (Constant (value)) if value == (() ) => definitions.UnitTpe
619
619
case Return (_) => definitions.NothingTpe
620
620
case _ => NoType
621
621
}
@@ -643,7 +643,7 @@ trait ExprBuilder {
643
643
def literalUnit = Literal (Constant (())) // a def to avoid sharing trees
644
644
645
645
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
647
647
case _ => tree :: Nil
648
648
}
649
649
You can’t perform that action at this time.
0 commit comments