Skip to content

Commit 7610931

Browse files
nicolasstuckicheeseng
authored andcommitted
Use Expr.ofList
1 parent 8f50b71 commit 7610931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scalatest.dotty/src/main/scala/org/scalatest/diagrams/DiagramsMacro.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ object DiagramsMacro {
135135
val left = l.seal.cast[DiagrammedExpr[T]]
136136
val rights = rs.map(_.seal.cast[DiagrammedExpr[_]])
137137
val res = Select.unique(l, "value").select(sel.symbol).appliedToArgs(diagrams.map(r => Select.unique(r, "value")) ++ others).seal.cast[R]
138-
'{ DiagrammedExpr.applyExpr[R]($left, ${rights.toExprOfList}, $res, $anchor) }.unseal
138+
'{ DiagrammedExpr.applyExpr[R]($left, ${Expr.ofList(rights)}, $res, $anchor) }.unseal
139139
}
140140
}
141141
}
@@ -155,7 +155,7 @@ object DiagramsMacro {
155155
val left = l.seal.cast[DiagrammedExpr[T]]
156156
val rights = rs.map(_.seal.cast[DiagrammedExpr[_]])
157157
val res = Select.unique(l, "value").select(sel.symbol).appliedToArgs(diagrams.map(r => Select.unique(r, "value")) ++ others).seal.cast[R]
158-
'{ DiagrammedExpr.applyExpr[R]($left, ${rights.toExprOfList}, $res, $anchor) }.unseal
158+
'{ DiagrammedExpr.applyExpr[R]($left, ${Expr.ofList(rights)}, $res, $anchor) }.unseal
159159
}
160160
}
161161

@@ -197,7 +197,7 @@ object DiagramsMacro {
197197
val rights = rs.map(_.seal.cast[DiagrammedExpr[_]])
198198
val res = Select.unique(l, "value").select(sel.symbol).appliedToTypes(targs.map(_.tpe))
199199
.appliedToArgs(diagrams.map(r => Select.unique(r, "value")) ++ others).seal.cast[R]
200-
'{ DiagrammedExpr.applyExpr[R]($left, ${rights.toExprOfList}, $res, $anchor) }.unseal
200+
'{ DiagrammedExpr.applyExpr[R]($left, ${Expr.ofList(rights)}, $res, $anchor) }.unseal
201201
}
202202
}
203203

0 commit comments

Comments
 (0)