Skip to content

Weird behavior with call attributes #2144

Closed
@cbuttner

Description

@cbuttner
fn VoidFn foo() {
  return fn void() {};
}

fn void main() {
  foo() @inline (); // Error: An expression was expected (I'd expect that just calls whatever foo returned)
  foo() @inline (foo()); // Not an error, but also doesn't do anything, the (foo()) just gets lost
}

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