aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Namer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-08-27 14:12:31 +0200
committerMartin Odersky <odersky@gmail.com>2013-08-27 14:12:41 +0200
commite2a05a5ac38647f9727d1e0ec8c3c14ac82b5de7 (patch)
tree78b7e72faf3fd4478c82048c4f65f2528684525e /src/dotty/tools/dotc/typer/Namer.scala
parenteab2123cd727fad2e0139e63edacfff7307d49f0 (diff)
downloaddotty-e2a05a5ac38647f9727d1e0ec8c3c14ac82b5de7.tar.gz
dotty-e2a05a5ac38647f9727d1e0ec8c3c14ac82b5de7.tar.bz2
dotty-e2a05a5ac38647f9727d1e0ec8c3c14ac82b5de7.zip
Fixed bugs related to typechecking closures.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Namer.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala
index 6fe6182b4..887970b67 100644
--- a/src/dotty/tools/dotc/typer/Namer.scala
+++ b/src/dotty/tools/dotc/typer/Namer.scala
@@ -71,9 +71,8 @@ class Namer { typer: Typer =>
*/
lazy val symOfTree = new mutable.HashMap[Tree, Symbol]
- /** A map from expanded trees their typed versions.
+ /** A map from expanded trees to their typed versions.
* Populated when trees are typechecked during completion (using method typedAhead).
- * Emptied during typer.
*/
lazy val typedTree = new mutable.HashMap[Tree, tpd.Tree]
@@ -189,6 +188,7 @@ class Namer { typer: Typer =>
/** The expansion of a member def */
def expansion(mdef: DefTree)(implicit ctx: Context): Tree = {
val expanded = desugar.defTree(mdef)
+ println(i"Expansion: $mdef expands to $expanded")
if (expanded ne mdef) expandedTree(mdef) = expanded
expanded
}