Skip to content

Commit 13c0b17

Browse files
committed
Fix NamedArg term/type classification
1 parent 70e800a commit 13c0b17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ object Trees {
554554
case class NamedArg[+T <: Untyped] private[ast] (name: Name, arg: Tree[T])(implicit @constructorOnly src: SourceFile)
555555
extends Tree[T] {
556556
type ThisTree[+T <: Untyped] = NamedArg[T]
557+
override def isTerm = arg.isTerm
558+
override def isType = arg.isType
557559
}
558560

559561
/** name = arg, outside a parameter list */

0 commit comments

Comments
 (0)