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

Type Check: If Then Else #17

Open
CodyFagley opened this issue Nov 19, 2019 · 0 comments
Open

Type Check: If Then Else #17

CodyFagley opened this issue Nov 19, 2019 · 0 comments
Labels
prebug Not a bug yet, but will be soon

Comments

@CodyFagley
Copy link
Member

if p then e1 else e2

If ... then ... else ... expressions need to be type checked to meet the following criteria:

  • p: Boolean Value
  • e1: Type0
  • e2: Type0

p must be a boolean value (or castable to boolean). e1 and e2 can be any valid expressions, as long as their types match.

If e1 and e2 are not equivalent types, a type checking error should be thrown to cross-compiling environment.

@CodyFagley CodyFagley added the prebug Not a bug yet, but will be soon label Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prebug Not a bug yet, but will be soon
Projects
None yet
Development

No branches or pull requests

1 participant