Empty type of let variable assumed before binding #1958
Labels
during 3: execution of incorrect program
An bug in the verifier that allows Dafny to run a program that does not correctly implement its spec
introduced: v3.0.0
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: verifier
Translation from Dafny to Boogie (translator)
priority: next
Will consider working on this after in progress work is done
status: needs-info
Issue requires more information from poster
The following program verifies, but should not:
The following similar code, but without the let expression, does produce an error (which is good):
A quick look at the generated Boogie shows that
var o: R ...
generates an assumption abouto
's type before the RHS has been evaluated and checked. That assumption should not be there (at least for a possibly empty type).The text was updated successfully, but these errors were encountered: