diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-11 14:42:45 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-11 14:42:56 +0100 |
commit | 459d78dccc40c94dd7da8b5b29762a494595778b (patch) | |
tree | 2d678de090302dab70d7079730f8ed4cc258b667 /src/dotty/tools/dotc/typer/Typer.scala | |
parent | e895249de8f59e5a5c4175b428193fa4c5ea90af (diff) | |
download | dotty-459d78dccc40c94dd7da8b5b29762a494595778b.tar.gz dotty-459d78dccc40c94dd7da8b5b29762a494595778b.tar.bz2 dotty-459d78dccc40c94dd7da8b5b29762a494595778b.zip |
New scheme for attachments.
Added general way to put attachments on some base type (which needs to inherit from Attachment.Container).
Used it to turn typedTree map into an attachment.
Also, moved DotClass to dotc.util.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 697441ca1..e68109c9b 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -964,7 +964,7 @@ class Typer extends Namer with Applications with Implicits { def typedUnadapted(initTree: untpd.Tree, pt: Type = WildcardType)(implicit ctx: Context): Tree = { val xtree = expanded(initTree) - typedTree remove xtree match { + xtree.removeAttachment(TypedAhead) match { case Some(ttree) => ttree case none => val sym = symOfTree.getOrElse(xtree, NoSymbol) |