diff options
author | Martin Odersky <odersky@gmail.com> | 2013-05-23 11:18:53 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-05-23 11:18:53 +0200 |
commit | db39f1a5f5062f00e09e20a897e8f6d26e1e4193 (patch) | |
tree | f367993fb537210f2b297c7ec8ec0be857b3603b /src/dotty/tools/dotc/ast/TypedTrees.scala | |
parent | 66fe5aaba6d5f7ae3694bcc942487cd1fe00c533 (diff) | |
download | dotty-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.scala | 9 |
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 |