Skip to content

Macro matching fails because of irrelevant overload #6643

@yglukhov

Description

@yglukhov
proc foo(x: int) = discard # Comment this out to make it work
macro foo(x: untyped{nkTableConstr}): untyped = discard
foo({"adsf": "asdf"})
test.nim(3, 4) Error: type mismatch: got (array[0..0, (string, string)])
but expected one of:
proc foo(x: int)
macro foo(x: untyped{nkTableConstr}): untyped

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