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

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

Closed
Wumpf opened this issue Apr 24, 2023 · 0 comments
Closed

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

Wumpf opened this issue Apr 24, 2023 · 0 comments
Labels
area: front-end Input formats for conversion kind: bug Something isn't working lang: WGSL WebGPU shading language

Comments

@Wumpf
Copy link
Member

Wumpf commented Apr 24, 2023

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;
}

@teoxoy teoxoy added kind: bug Something isn't working lang: WGSL WebGPU shading language area: front-end Input formats for conversion labels Apr 24, 2023
@teoxoy teoxoy added this to the WGSL Specification V1 milestone Apr 24, 2023
SparkyPotato added a commit to SparkyPotato/naga that referenced this issue May 18, 2023
@teoxoy teoxoy closed this as completed in 1c17fa8 May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: front-end Input formats for conversion kind: bug Something isn't working lang: WGSL WebGPU shading language
Projects
None yet
Development

No branches or pull requests

2 participants