Skip to content

client side builtin_shadow diagnostic#188

Draft
mighdoll wants to merge 1 commit into
glob-importsfrom
builtin_shadow
Draft

client side builtin_shadow diagnostic#188
mighdoll wants to merge 1 commit into
glob-importsfrom
builtin_shadow

Conversation

@mighdoll

Copy link
Copy Markdown
Contributor

builtin_shadow diagnostic warns clients if they're wildcard overriding a builtin (supressible)

@stefnotch

Copy link
Copy Markdown
Collaborator

Are there other cases where we should warn when a builtin in shadowed?

For example alias f32 = i32; should definitely result in some diagnostic.

Comment thread Imports.md
is intentional.
- **`builtin_shadow`** fires on a wildcard import when a referenced name in the
module resolves to a wildcard-imported item that shadows a WGSL builtin such
as `vec3` or `clamp`. Suppress at the import site if the override is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just import site or both declaration site and import site? I understood it's both from a sentence above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants