Skip to content

Commit

Permalink
Fix NamedArg term/type classification
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Feb 7, 2024
1 parent 8ebbf16 commit fea6fff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/src/dotty/tools/dotc/ast/Trees.scala
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ object Trees {
case class NamedArg[+T <: Untyped] private[ast] (name: Name, arg: Tree[T])(implicit @constructorOnly src: SourceFile)
extends Tree[T] {
type ThisTree[+T <: Untyped] = NamedArg[T]
override def isTerm = arg.isTerm
override def isType = arg.isType
}

/** name = arg, outside a parameter list */
Expand Down

0 comments on commit fea6fff

Please sign in to comment.