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

Should not generalise over resource declaration types #676

Open
MatthewDaggitt opened this issue Aug 11, 2023 · 0 comments
Open

Should not generalise over resource declaration types #676

MatthewDaggitt opened this issue Aug 11, 2023 · 0 comments
Labels
bug Something isn't working error-messages

Comments

@MatthewDaggitt
Copy link
Collaborator

If the variable n is undeclared then

@property
robust : Vector Bool n
robust = foreach i . robustAround [[0]] 0

results in the error

Error at Line 83, Columns 1-7: The type of @property 'robust':
        >   forallT {n} . Vector Bool n
        > is not supported. Only the following types are allowed for '@property's:
        >   Bool, Vector Bool n, Tensor Bool ns
        > Fix: either change the type of 'robust' to a supported type or remove the '@property' annotation.

Not fixed by the proposed solution in #456

@MatthewDaggitt MatthewDaggitt added bug Something isn't working error-messages labels Aug 11, 2023
@MatthewDaggitt MatthewDaggitt added this to the v0.10.0 milestone Aug 11, 2023
@MatthewDaggitt MatthewDaggitt removed this from the v0.10.0 milestone Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error-messages
Projects
None yet
Development

No branches or pull requests

1 participant