Skip to content

Commit dada61a

Browse files
authored
Merge pull request #60 from scala/backport-lts-3.3-21836
Backport "Fix typo in `allTermArguments`" to 3.3 LTS
2 parents 76769ab + 251a998 commit dada61a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

+3-3
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

Diff for: compiler/src/dotty/tools/dotc/transform/TreeChecker.scala

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

208208

209-
class Checker(phasesToCheck: Seq[Phase]) extends ReTyper with Checking {
209+
class Checker(phasesToCheck: Seq[Phase]) extends ReTyper {
210210
import ast.tpd.*
211211

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

0 commit comments

Comments
 (0)