aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/TypedTrees.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/ast/TypedTrees.scala')
-rw-r--r--src/dotty/tools/dotc/ast/TypedTrees.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/ast/TypedTrees.scala b/src/dotty/tools/dotc/ast/TypedTrees.scala
index 3dd5b3128..bf3b3633b 100644
--- a/src/dotty/tools/dotc/ast/TypedTrees.scala
+++ b/src/dotty/tools/dotc/ast/TypedTrees.scala
@@ -128,7 +128,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
val targetTpt = if (targetType.exists) TypeTree(targetType) else EmptyTree
Block(
DefDef(meth, rhsFn) :: Nil,
- Closure(Nil, Ident(TermRef.withSym(NoPrefix, meth)), targetTpt))
+ Closure(Nil, Ident(TermRef(NoPrefix, meth)), targetTpt))
}
def Match(selector: Tree, cases: List[CaseDef])(implicit ctx: Context): Match =
@@ -311,7 +311,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
Apply(
Select(
New(tp withoutArgs targs),
- TermRef.withSym(tp.normalizedPrefix, tp.typeSymbol.primaryConstructor.asTerm))
+ TermRef(tp.normalizedPrefix, tp.typeSymbol.primaryConstructor.asTerm))
.appliedToTypes(targs),
args)
}