summaryrefslogtreecommitdiff
path: root/test/files/run/t8047.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-8047 change fresh name encoding to avoid owner corruptionDen Shabalin2013-12-161-0/+7
Previously a following encoding was used to represent fresh names that should be created at runtime of the quasiquote: build.withFreshTermName(prefix1) { name$1 => ... build.withFreshTermName(prefixN) { name$N => tree } ... } It turned out that this encoding causes symbol corruption when tree defines symbols of its own. After being spliced into anonymous functions, the owner chain of those symbols will become corrupted. Now a simpler and probably better performing alternative is used instead: { val name$1 = universe.build.freshTermName(prefix1) ... val name$N = universe.build.freshTermName(prefixN) tree } Here owner stays the same and doesn’t need any adjustment.