Skip to content

Commit 91ef921

Browse files
authored
Fix typo in allTermArguments (#21836)
2 parents 31e7359 + fcfa6b0 commit 91ef921

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
142142

143143
/** All term arguments of an application in a single flattened list */
144144
def allTermArguments(tree: Tree): List[Tree] = unsplice(tree) match {
145-
case Apply(fn, args) => allArguments(fn) ::: args
146-
case TypeApply(fn, args) => allArguments(fn)
147-
case Block(_, expr) => allArguments(expr)
145+
case Apply(fn, args) => allTermArguments(fn) ::: args
146+
case TypeApply(fn, args) => allTermArguments(fn)
147+
case Block(_, expr) => allTermArguments(expr)
148148
case _ => Nil
149149
}
150150

compiler/src/dotty/tools/dotc/transform/TreeChecker.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ object TreeChecker {
236236
private[TreeChecker] def isValidJVMMethodName(name: Name): Boolean = name.toString.forall(isValidJVMMethodChar)
237237

238238

239-
class Checker(phasesToCheck: Seq[Phase]) extends ReTyper with Checking {
239+
class Checker(phasesToCheck: Seq[Phase]) extends ReTyper {
240240
import ast.tpd.*
241241

242242
protected val nowDefinedSyms = util.HashSet[Symbol]()

0 commit comments

Comments
 (0)