Skip to content

Error when using named argument on trailing macro body expansion #2139

Closed
@cbuttner

Description

@cbuttner
macro @foo(; @body(int arg)) {
  @body(arg: 0);
}

fn void main() {
  @foo(; int arg) {};
}
⚠️ The compiler encountered an unexpected error: "Should be unreachable".

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions