Skip to content

Compiler assert: $defined of generic type #2140

Closed
@cbuttner

Description

@cbuttner
fn void main() {
  $defined(Foo{int});
}

⚠️ The compiler encountered an unexpected error: "Violated assert: decl->decl_kind == DECL_FUNC".

Bonus error:

fn void main() {
  $defined(Foo{int}****); // Error: An expression was expected
}

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