Skip to content

Commit a667ac3

Browse files
mboveltgodzik
authored andcommitted
Fix typo in allTermArguments
[Cherry-picked aa9115d]
1 parent 0d1f4a5 commit a667ac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
136136

137137
/** All term arguments of an application in a single flattened list */
138138
def allTermArguments(tree: Tree): List[Tree] = unsplice(tree) match {
139-
case Apply(fn, args) => allArguments(fn) ::: args
140-
case TypeApply(fn, args) => allArguments(fn)
141-
case Block(_, expr) => allArguments(expr)
139+
case Apply(fn, args) => allTermArguments(fn) ::: args
140+
case TypeApply(fn, args) => allTermArguments(fn)
141+
case Block(_, expr) => allTermArguments(expr)
142142
case _ => Nil
143143
}
144144

0 commit comments

Comments
 (0)