diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-17 09:29:27 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-17 09:29:27 +0200 |
commit | 0575d51b898d14f818e35a19a5f9f67f280a0b04 (patch) | |
tree | 3681819a20a0e62810c51790ee8a417a7cd8c2a6 /src/dotty/tools/dotc/ast | |
parent | 28464328fbbc2a7575d819dcb98be0c9f11f7cee (diff) | |
download | dotty-0575d51b898d14f818e35a19a5f9f67f280a0b04.tar.gz dotty-0575d51b898d14f818e35a19a5f9f67f280a0b04.tar.bz2 dotty-0575d51b898d14f818e35a19a5f9f67f280a0b04.zip |
Changed desugaring of modules
Module classes no longer contain an explicit self type referencing the module val (this leads to cycles). Self type is instead handled by the completer.
Diffstat (limited to 'src/dotty/tools/dotc/ast')
-rw-r--r-- | src/dotty/tools/dotc/ast/Desugar.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/ast/Desugar.scala b/src/dotty/tools/dotc/ast/Desugar.scala index 68219bd7d..0ce7b3707 100644 --- a/src/dotty/tools/dotc/ast/Desugar.scala +++ b/src/dotty/tools/dotc/ast/Desugar.scala @@ -219,8 +219,7 @@ object desugar { val clsName = name.moduleClassName val clsRef = Ident(clsName) val modul = ValDef(mods | ModuleCreationFlags, name, clsRef, New(clsRef, Nil)) withPos mdef.pos - val clsSelf = cpy.ValDef(self, self.mods, self.name, SingletonTypeTree(Ident(name)), self.rhs) - val clsTmpl = cpy.Template(tmpl, constr, parents, clsSelf, body) + val clsTmpl = cpy.Template(tmpl, constr, parents, EmptyValDef, body) val cls = TypeDef(mods.toTypeFlags & AccessFlags | ModuleClassCreationFlags, clsName, clsTmpl) Thicket(modul, cls) } |