Skip to content

Commit e8a5edb

Browse files
committed
Refine type of ValOrDefDef.name
1 parent 9e87840 commit e8a5edb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ object Trees {
372372

373373
/** A ValDef or DefDef tree */
374374
trait ValOrDefDef[-T >: Untyped] extends MemberDef[T] with WithLazyField[Tree[T]] {
375+
def name: TermName
375376
def tpt: Tree[T]
376377
def unforcedRhs: LazyTree = unforced
377378
def rhs(implicit ctx: Context): Tree[T] = forceIfLazy

0 commit comments

Comments
 (0)