Closed scabug closed 6 years ago
Imported From: https://issues.scala-lang.org/browse/SI-8533?orig=1 Reporter: @DarkDimius Affected Versions: 2.11.0 See #8425
@retronym said: Sounds like a second helping of #8425.
@retronym said: Using consecutive '$' in an identifier is pretty much suicide.
@DarkDimius said (edited on Apr 24, 2014 11:37:44 AM UTC): AFAIK those wont end as consecutive '$$' as it's just a way to escape '$' inside string interpolators.
@retronym said: Okay, it must be added elsewhere.
@retronym said:
PS: Because it is my hobby to point out fun issues with hygiene and quasiquotes, putting 1 to 10
in a quasiquote is unsafe as you can't be sure that the extension method to
will always be the same one, it depends on the context of the call site. new *root*.....Range(1, 10)
would be safer.
closing all quasiquotes tickets; see #10755
(comment and/or reopen if I'm casting my net too wide here)
Such macro will compile, but fails to expand.
Compiler stack trace https://gist.github.com/DarkDimius/cd3e49d4740ce52a7db8
Adding '0' suffix to names of variables is a workaround.