Closed scabug closed 6 years ago
Imported From: https://issues.scala-lang.org/browse/SI-9372?orig=1 Reporter: @xeno-by Affected Versions: 2.11.7
I experienced the same error message as well
A small / minimized example or at least clear steps how to reproduce the issue would make it a lot more likely for this to get fixed.
Maybe https://github.com/scala/bug/issues/8779 addressed in https://github.com/scala/scala/pull/5544? Sorry it's too deep in the night for me to look right now.
closing all quasiquotes tickets; see #10755
also perhaps this changed anyway in the new back end
After upgrading to 2.11.7, some scala.meta quasiquotes used in certain circumstances lead to really weird errors. Since the circumstances are very specific, I've no idea where to start minimization. Maybe you'll have some ideas.
Notes: 1) The errors only manifest themselves on the second execution of the same line of code. Not on the first, not on the third or subsequent executions. 2) Removing -optimise from scalacOptions makes the errors go away. 3) Running the REPL via
scala
, not viasbt console
makes the errors go away.