Skip to content

Allow capturing function whose name ends in ? #1649

@jgallagher

Description

@jgallagher

If I have a local function defined as

def different?(foo) do
    ...

then trying to capture the function as "&different?/1" results in the following error:

invalid args for &, expected an expression in the format of &Mod.fun/arity, &local/arity or a capture containing at least one argument as &1, got: different?()

Changing the name and capture to just "different" (no ?) works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions