@@ -6,7 +6,7 @@ import dotty.tools.dotc.transform.{ExplicitOuter, Erasure}
66import dotty .tools .dotc .typer .ProtoTypes .FunProtoTyped
77import transform .SymUtils ._
88import core ._
9- import util .Positions ._ , Types ._ , Contexts ._ , Constants ._ , Names ._ , Flags ._
9+ import util .Positions ._ , Types ._ , Contexts ._ , Constants ._ , Names ._ , Flags ._ , NameOps . _
1010import SymDenotations ._ , Symbols ._ , StdNames ._ , Annotations ._ , Trees ._ , Symbols ._
1111import Denotations ._ , Decorators ._ , DenotTransformers ._
1212import collection .mutable
@@ -243,7 +243,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
243243 val localDummy = ((NoSymbol : Symbol ) /: body)(findLocalDummy.apply)
244244 .orElse(ctx.newLocalDummy(cls))
245245 val impl = untpd.Template (constr, parents, selfType, newTypeParams ++ body)
246- .withType(localDummy.nonMemberTermRef )
246+ .withType(localDummy.termRef )
247247 ta.assignType(untpd.TypeDef (cls.name, impl), cls)
248248 }
249249
@@ -382,7 +382,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
382382 val targs = tp.argTypes
383383 val tycon = tp.typeConstructor
384384 New (tycon)
385- .select(TermRef .withSig (tycon, constr))
385+ .select(TermRef .withSym (tycon, constr))
386386 .appliedToTypes(targs)
387387 .appliedToArgs(args)
388388 }
@@ -702,16 +702,14 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
702702 TypeRef (tree.tpe, sym.name.asTypeName)
703703 }
704704 else
705- TermRef .withSigAndDenot(tree.tpe, sym.name.asTermName,
706- sym.signature, sym.denot.asSeenFrom(tree.tpe))
707- untpd.Select (tree, sym.name)
708- .withType(tp)
705+ TermRef (tree.tpe, sym.name.asTermName, sym.denot.asSeenFrom(tree.tpe))
706+ untpd.Select (tree, sym.name).withType(tp)
709707 }
710708
711709 /** A select node with the given selector name and signature and a computed type */
712710 def selectWithSig (name : Name , sig : Signature )(implicit ctx : Context ): Tree =
713711 untpd.SelectWithSig (tree, name, sig)
714- .withType(TermRef .withSig (tree.tpe, name.asTermName, sig))
712+ .withType(TermRef (tree.tpe, name.asTermName.withSig( sig) ))
715713
716714 /** A select node with selector name and signature taken from `sym`.
717715 * Note: Use this method instead of select(sym) if the referenced symbol
@@ -919,7 +917,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
919917 }
920918 else denot.asSingleDenotation.termRef
921919 val fun = receiver
922- .select(TermRef .withSig (receiver.tpe, selected.termSymbol.asTerm))
920+ .select(TermRef .withSym (receiver.tpe, selected.termSymbol.asTerm))
923921 .appliedToTypes(targs)
924922
925923 def adaptLastArg (lastParam : Tree , expectedType : Type ) = {
0 commit comments