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 {
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
You can’t perform that action at this time.
0 commit comments