Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

[wgsl-in] Redefining parameter is incorreclty allowed #2312

@Wumpf

Description

@Wumpf

The following snippet redefines an incoming parameter which should not compile (and Tint will complain about it!):

fn fun(t: f32) -> f32 {
    let t = t + 1.0;
    return t;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: front-endInput formats for conversionkind: bugSomething isn't workinglang: WGSLWebGPU shading language

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions