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

Using "in" on a List object is not flagged as incorrect Essence #671

Open
jwatts-maybe opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@jwatts-maybe
Copy link

As a minimal example:

find x : int(0..5)
such that x in [i | i <- [1,2,3]]

Conjure compiles this into Essence', but Savile Row then throws an error:

Error:
    Savile Row stdout: ERROR: Expected set on right hand side of 'in' operator: (x in [1, 2, 3])

    Savile Row stderr: ERROR: Failed type checking after substituting in lettings.

    Savile Row exit-code: 1

(repo version 03d6014e5 (2024-09-25 19:47:19 +0100))

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