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

Boolean type inference doesn't work with && and || when both variables are new #253

Open
onsah opened this issue Apr 5, 2024 · 0 comments

Comments

@onsah
Copy link

onsah commented Apr 5, 2024

I noticed that when introducing more than one variable using boolean operators type inference doesn't work as expected.

How to reproduce:

  1. Open a Hanfor project
  2. Create a new formalization
  3. Choose 'Global' scope
  4. Choose 'it is always the case that {R} holds' pattern
  5. Set R to a && b where a and b are not existing variables.
  6. Click 'Save Changes'

Behaviour: Unknown type error for both a and b.
Expected: a and b are inferred as boolean variables.

Note that when one of the variable is already known, the other is inferred as well.

Version: Hanfor v1.0.2-832-ge066698d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant