Skip to content

sourcecode.Name does not capture back ticked macro keyword in Scala3 (200USD Bounty) #120

Closed
@carueda

Description

@carueda

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions