Typechecker: Issue type errors for invalid constructor preconditions
d-xo opened this issue · comments
dxo commented
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.