From dbd9569755f40263a783d0301b3fb07849605d17 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 24 Oct 2013 17:37:57 +0200 Subject: Fix: Symbols and interpolated strings are term trees. --- src/dotty/tools/dotc/ast/UntypedTrees.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/ast') diff --git a/src/dotty/tools/dotc/ast/UntypedTrees.scala b/src/dotty/tools/dotc/ast/UntypedTrees.scala index 6ad547dc9..c5a41661e 100644 --- a/src/dotty/tools/dotc/ast/UntypedTrees.scala +++ b/src/dotty/tools/dotc/ast/UntypedTrees.scala @@ -23,8 +23,8 @@ object untpd extends Trees.Instance[Untyped] with TreeInfo[Untyped] { def withName(name: Name)(implicit ctx: Context) = cpy.ModuleDef(this, mods, name.toTermName, impl) } - case class SymbolLit(str: String) extends Tree - case class InterpolatedString(id: TermName, strings: List[Literal], elems: List[Tree]) extends Tree + case class SymbolLit(str: String) extends TermTree + case class InterpolatedString(id: TermName, strings: List[Literal], elems: List[Tree]) extends TermTree case class Function(args: List[Tree], body: Tree) extends Tree case class InfixOp(left: Tree, op: Name, right: Tree) extends Tree case class PostfixOp(od: Tree, op: Name) extends Tree -- cgit v1.2.3