Skip to content

Commit f76d1b5

Browse files
committed
pass untpd.Tree to handleRepeated
1 parent 89dd6f5 commit f76d1b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Dynamic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ trait Dynamic {
177177
* It's an error if U is neither a value nor a method type, or a dependent method
178178
* type
179179
*/
180-
def handleStructural(tree: Tree)(using Context): Tree = {
180+
def handleStructural(tree: Tree)(using Context) = {
181181
val fun @ Select(qual, name) = funPart(tree): @unchecked
182182
val vargss = termArgss(tree)
183183

184-
def handleRepeated(base: Tree, possiblyCurried: List[List[Tree]]) =
184+
def handleRepeated(base: untpd.Tree, possiblyCurried: List[List[Tree]]) =
185185
possiblyCurried.map { args =>
186186
val isRepeated = args.exists(_.tpe.widen.isRepeatedParam)
187187
if isRepeated && qual.tpe <:< defn.ReflectSelectableTypeRef then

0 commit comments

Comments
 (0)