aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/TypedTrees.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-05-23 11:18:53 +0200
committerMartin Odersky <odersky@gmail.com>2013-05-23 11:18:53 +0200
commitdb39f1a5f5062f00e09e20a897e8f6d26e1e4193 (patch)
treef367993fb537210f2b297c7ec8ec0be857b3603b /src/dotty/tools/dotc/ast/TypedTrees.scala
parent66fe5aaba6d5f7ae3694bcc942487cd1fe00c533 (diff)
downloaddotty-db39f1a5f5062f00e09e20a897e8f6d26e1e4193.tar.gz
dotty-db39f1a5f5062f00e09e20a897e8f6d26e1e4193.tar.bz2
dotty-db39f1a5f5062f00e09e20a897e8f6d26e1e4193.zip
Moved TempTrees to Trees, get automatically flattened in transforms.
Diffstat (limited to 'src/dotty/tools/dotc/ast/TypedTrees.scala')
-rw-r--r--src/dotty/tools/dotc/ast/TypedTrees.scala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/ast/TypedTrees.scala b/src/dotty/tools/dotc/ast/TypedTrees.scala
index 266664cce..e5e0c99fd 100644
--- a/src/dotty/tools/dotc/ast/TypedTrees.scala
+++ b/src/dotty/tools/dotc/ast/TypedTrees.scala
@@ -256,11 +256,10 @@ object tpd extends Trees.Instance[Type] {
*
* gets expanded to
*
- * <module> lazy val obj = {
- * class obj$ extends parents { this: obj.type => decls }
- * new obj$
- * }
+ * <module> lazy val obj = new obj$
+ * <module> class obj$ extends parents { this: obj.type => decls }
*
+ * (The following no longer applies:
* What's interesting here is that the block is well typed
* (because class obj$ is hoistable), but the type of the `obj` val is
* not expressible. What needs to happen in general when
@@ -275,7 +274,7 @@ object tpd extends Trees.Instance[Type] {
*
* On the other hand, for method result type inference, if the type of
* the RHS of a method contains a class owned by the method, this would be
- * an error.
+ * an error.)
*/
def ModuleDef(sym: TermSymbol, body: List[Tree])(implicit ctx: Context): tpd.TempTrees = {
val modcls = sym.moduleClass.asClass