diff options
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) |