Skip to content

Macros want to register usage of import #11887

Open
@som-snytt

Description

@som-snytt

Scala 2 macros don't have sanctioned API to mark an import as "used" wrt -Xlint.

Presumably, a macro uses inferImplicit (which doesn't mark the import as used because implicit searches probe the implicit scope multiple times) but then wants to lookupSymbol explicitly to say "yes, I used this one."

That may be possible but not convenient.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions