summaryrefslogtreecommitdiff
path: root/test/files/pos/t6386.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6386 typed existential type tree's original now have tpe setUladzimir Abramchuk2013-04-091-0/+5
Tree reification fails for ExistentialTypeTree. The reason is that the tree passed for reification (see reifyTree at GetTrees.scala) must have not null tpe (see reifyBoundType at GenTrees.scala), which is not true in the case of ExistentialTypeTree. Why is it so? The tree passed to reifyTree was obtained in the reshape phase of reificationusing using original TypeTrees that reporesent pre- typer representation of a type. The problem is that original's tpe for ExistentialTypeTree is not set. So the solution to the issue is to create ExistentialTypeTree's original in a such way that is has actual tpe set.