Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
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