Skip to content

Commit

Permalink
Fix wrong reference to unit runtime value
Browse files Browse the repository at this point in the history
Caught by @compileTimeOnly
  • Loading branch information
nicolasstucki committed May 3, 2019
1 parent 9821c9a commit 5702026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src-3.x/scala/runtime/DynamicTuple.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object DynamicTuple {
def dynamic_*: [This <: Tuple, H] (self: Tuple, x: H): H *: This = {
type Result = H *: This
(self: Any) match {
case Unit =>
case () =>
Tuple1(x).asInstanceOf[Result]
case self: Tuple1[_] =>
Tuple2(x, self._1).asInstanceOf[Result]
Expand Down

0 comments on commit 5702026

Please sign in to comment.