summaryrefslogtreecommitdiff
path: root/test/files/run/t5256f.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2013-02-12 12:32:20 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-02-21 11:22:14 +0100
commitdafebd040e938208e26a27dbd1e14c0307021cf0 (patch)
tree67cd2823fa35d229e405e1c2bf924faf53357a50 /test/files/run/t5256f.check
parentcc89bd71edfd4c88ca1099891e6c20b77379122a (diff)
downloadscala-dafebd040e938208e26a27dbd1e14c0307021cf0.tar.gz
scala-dafebd040e938208e26a27dbd1e14c0307021cf0.tar.bz2
scala-dafebd040e938208e26a27dbd1e14c0307021cf0.zip
Fix typing idempotency bug with Annotated trees
typedAnnotated transforms an Annotated tree into a Typed tree. The original field of the result is set to the Annotated tree. The bug was that typedAnnotated was using the untyped Annotated tree as original, but also set its type. When re-typing later on the same Annotated tree, the typer would consider it as alreadyTyped. This is incorrect, the typer needs to convert Annotated trees to Typed. Also, the Annotated tree only had its type field set, but its children were still untyped. This crashed the compiler lateron, non-typed trees would get out of the typing phase.
Diffstat (limited to 'test/files/run/t5256f.check')
0 files changed, 0 insertions, 0 deletions