Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
CompilerControl.parseTree can in certain conditions return a typed tree #7026
It happens because the current implementation tries to memorize the tree. An easy fix is just to re-create the parse tree every time. Tests for this should check that:
I've discussed this with the IDE team and provided a fix in their project for now but this is something that should be fixed in the compiler. See the ticket here: https://www.assembla.com/spaces/scala-ide/tickets/1001326#/activity/ticket:
I have a fix for this but I need to port my tests from the IDE to the compiler before I can have a pull request ready.
 There is an exception to this though. Some of the nodes that
Imported From: https://issues.scala-lang.org/browse/SI-7026?orig=1