Skip to content

Comptime is not required for arguments of comptime only types after first generic argument #5709

Closed
@alexnask

Description

@alexnask

Example

fn Matrix(
    comptime T: type,
    width: comptime_int,
    height: comptime_int,
) type {
    return [height][width]T;
}

width and heigth should be checked and require comptime even if they are actually type erased.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions