From 510ae8bf1c6932595c1313c4b7a8027c435640be Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 25 Nov 2013 13:11:29 +0100 Subject: Cleanup of TermRef.withSym and TypeRef.withSym All occurrences replaced by select, or second version of Term/TypeRef.apply --- src/dotty/tools/dotc/typer/Typer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/typer/Typer.scala') diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 74ad45390..a4b968c9a 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -574,7 +574,7 @@ class Typer extends Namer with Applications with Implicits { else cx.tree match { case ddef: DefDef => val meth = ddef.symbol - val from = Ident(TermRef.withSym(NoPrefix, meth.asTerm)) + val from = Ident(TermRef(NoPrefix, meth.asTerm)) val proto = if (meth.isConstructor) defn.UnitType @@ -695,7 +695,7 @@ class Typer extends Namer with Applications with Implicits { def typedBind(tree: untpd.Bind, pt: Type)(implicit ctx: Context): Bind = track("typedBind") { val body1 = typed(tree.body, pt) val sym = ctx.newSymbol(ctx.owner, tree.name.asTermName, EmptyFlags, pt, coord = tree.pos) - cpy.Bind(tree, tree.name, body1) withType TermRef.withSym(NoPrefix, sym) + cpy.Bind(tree, tree.name, body1) withType TermRef(NoPrefix, sym) } def typedAlternative(tree: untpd.Alternative, pt: Type)(implicit ctx: Context): Alternative = track("typedAlternative") { -- cgit v1.2.3