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

Typechecker: Issue type errors for invalid constructor preconditions #94

Open
d-xo opened this issue Apr 29, 2021 · 0 comments
Open

Typechecker: Issue type errors for invalid constructor preconditions #94

d-xo opened this issue Apr 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@d-xo
Copy link
Collaborator

d-xo commented Apr 29, 2021

The following spec is accepted by the typechecker even though it makes no sense (there is no prestate when the constructor is running):

constructor of C
interface constructor()

iff

    x == 7

creates

    uint x := 2

We should modify the typechecker to reject specs containing storage references in constructor precondition blocks.

@d-xo d-xo added the bug Something isn't working label Apr 29, 2021
@ethereum ethereum deleted a comment from staccDOTsol Aug 4, 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
Projects
None yet
Development

No branches or pull requests

1 participant