diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-14 19:13:03 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-15 16:36:53 +0100 |
commit | 0eec180a686a4425bd3f3089006eda530123fe2e (patch) | |
tree | 9472beb8aba974cc95444e4351565d323913efeb /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 21fa5dd1a47727c977848163e2610be745951dbc (diff) | |
download | dotty-0eec180a686a4425bd3f3089006eda530123fe2e.tar.gz dotty-0eec180a686a4425bd3f3089006eda530123fe2e.tar.bz2 dotty-0eec180a686a4425bd3f3089006eda530123fe2e.zip |
Add a typedUnApply method.
The method is needed to be able to survive ReTypers between frontend and
pattern matching.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index f6027165b..3282b8288 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1017,6 +1017,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit case tree: untpd.PackageDef => typedPackageDef(tree) case tree: untpd.Annotated => typedAnnotated(tree, pt) case tree: untpd.TypedSplice => tree.tree + case tree: untpd.UnApply => typedUnApply(tree, pt) case untpd.PostfixOp(tree, nme.WILDCARD) => typedAsFunction(tree, pt) case untpd.EmptyTree => tpd.EmptyTree case _ => typedUnadapted(desugar(tree), pt) |