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

test case: invalid to have bare type constructor or type conversion #1411

Closed
dneto0 opened this issue May 16, 2022 · 1 comment
Closed

test case: invalid to have bare type constructor or type conversion #1411

dneto0 opened this issue May 16, 2022 · 1 comment
Labels

Comments

@dneto0
Copy link
Contributor

dneto0 commented May 16, 2022

This should produce a shader-creation error:

fn foo() {
   i32(0i);  // this is a type constructor, not a function call
   i32(1.0f); // this is value conversion, not a function call
}

These are expressions not function calls.

@dj2 dj2 added this to CTS May 16, 2022
@dj2 dj2 added the wgsl label May 16, 2022
@dj2 dj2 moved this to New (not in repo) in CTS May 16, 2022
@alan-baker
Copy link
Contributor

This should be by #3502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Open (no TODO)
Development

No branches or pull requests

4 participants
@dj2 @dneto0 @alan-baker and others