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

Check types for more things #14

Open
chip-so opened this issue Jan 6, 2025 · 0 comments · May be fixed by #99
Open

Check types for more things #14

chip-so opened this issue Jan 6, 2025 · 0 comments · May be fixed by #99
Assignees
Labels
policy-compiler Policy language compiler

Comments

@chip-so
Copy link
Contributor

chip-so commented Jan 6, 2025

With a functioning type checker, we can check more things at compile time:

  • fields of structs and fact literals
  • arguments to function calls
  • match test expressions versus arm expressions
  • check that an if expression is a boolean

As noted, marking Typeish as #[must_use] lights up all the places that need type checking. So that's a good place to start.

@chip-so chip-so added the policy-compiler Policy language compiler label Jan 6, 2025
@chip-so chip-so self-assigned this Jan 6, 2025
@chip-so chip-so linked a pull request Feb 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
policy-compiler Policy language compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant