Closed
Description
Scastie: https://scastie.scala-lang.org/carueda/NIAVkP82Rd2RVusUXRZMGQ/13
In short, applying:
def keyword(implicit name: sourcecode.Name): String = name.value
to back ticked macro
:
val `macro` = keyword
results in capturing something else, apparently the name of the enclosing environment, but not the val's name itself.
Other Scala keywords seem to be captured just fine.
Haoyi: To incentivize contribution, I'm putting a 200USD bounty on resolving this ticket. This is payable via bank transfer, and at my discretion in case of ambiguity. The acceptance criteria is a PR fixing this issue and updates to our test infrastructure to validate the fix
Metadata
Metadata
Assignees
Labels
No labels