Skip to content

either move callconv to be just after fn keyword, or put comptime arguments in scope of callconv expression #4630

@alexnask

Description

@alexnask

Example:

fn foo(comptime flag: bool) callconv(if (flag) .Unspecified else .Async) void {}

test "" {
    // Yields: "error: use of undeclared identifier 'flag'"
    foo(true);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions