Skip to content

Incorrect Call AST #1093

@dom96

Description

@dom96
import macros

macro def(x: stmt): stmt {.immediate.} =
  echo treeRepr(x)

def name(a, b:cint) => nil

Outputs:

Infix
  Ident !"=>"
  Call
    Ident !"name"
    Ident !"a"
    Ident !"cint"
  NilLit nil

The b ident is lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions