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

rule: ban-type-builtin #204

Open
DonIsaac opened this issue Jan 16, 2025 · 0 comments
Open

rule: ban-type-builtin #204

DonIsaac opened this issue Jan 16, 2025 · 0 comments
Labels
A-linter Area - linter and lint rules C-rule Category - Lint rule suggestion good first issue Good for newcomers

Comments

@DonIsaac
Copy link
Owner

Description

@Type will be removed from Zig completely at some point, being replaced by @Int, @Struct, etc.
ziglang/zig#10710
Please describe what syntax or coding patterns this rule prohibits. Make sure you describe why its bad.

Examples

Examples of incorrect code for this rule

const Foo = @Type(.Int);

Examples of correct code for this rule

const Foo = @Int();
@DonIsaac DonIsaac added good first issue Good for newcomers A-linter Area - linter and lint rules C-rule Category - Lint rule suggestion labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - linter and lint rules C-rule Category - Lint rule suggestion good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant