aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/tpd.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/ast/tpd.scala')
-rw-r--r--src/dotty/tools/dotc/ast/tpd.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/ast/tpd.scala b/src/dotty/tools/dotc/ast/tpd.scala
index 03c0f83a9..95f5b49be 100644
--- a/src/dotty/tools/dotc/ast/tpd.scala
+++ b/src/dotty/tools/dotc/ast/tpd.scala
@@ -300,7 +300,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
}
def Import(expr: Tree, selectors: List[untpd.Tree])(implicit ctx: Context): Import =
- untpd.Import(expr, selectors).withType(ctx.newImportSymbol(SharedTree(expr)).termRef).checked
+ untpd.Import(expr, selectors).withType(ctx.newImportSymbol(expr).termRef).checked
def PackageDef(pid: RefTree, stats: List[Tree])(implicit ctx: Context): PackageDef =
untpd.PackageDef(pid, stats).withType(pid.symbol.namedType).checked
@@ -308,9 +308,6 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
def Annotated(annot: Tree, arg: Tree)(implicit ctx: Context): Annotated =
untpd.Annotated(annot, arg).withType(AnnotatedType(Annotation(annot), arg.tpe)).checked
- def SharedTree(tree: Tree)(implicit ctx: Context): SharedTree =
- Trees.SharedTree(tree).withType(tree.tpe)
-
// ------ Making references ------------------------------------------------------
/** A tree representing the same reference as the given type */