File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -752,15 +752,15 @@ object Denotations {
752
752
753
753
/** The TypeRef representing this type denotation at its original location. */
754
754
def typeRef (implicit ctx : Context ): TypeRef =
755
- TypeRef (symbol.owner.thisType, symbol.name.asTypeName, this )
755
+ TypeRef (symbol.owner.thisType, symbol).withDenot( this )
756
756
757
757
/** The typeRef applied to its own type parameters */
758
758
def appliedRef (implicit ctx : Context ): Type =
759
759
typeRef.appliedTo(symbol.typeParams.map(_.typeRef))
760
760
761
761
/** The TermRef representing this term denotation at its original location. */
762
762
def termRef (implicit ctx : Context ): TermRef =
763
- TermRef (symbol.owner.thisType, symbol.name.asTermName, this )
763
+ TermRef (symbol.owner.thisType, symbol).withDenot( this )
764
764
765
765
/** The NamedType representing this denotation at its original location.
766
766
* Same as either `typeRef` or `termRef` depending whether this denotes a type or not.
You can’t perform that action at this time.
0 commit comments