Reference types in comprehension soundness issue #1604
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
logic
An inconsistency in Dafny's logic (e.g. in the Boogie prelude)
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
In the case above, the verifier passes and
error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<_module.Tr>' to 'System.Collections.Generic.IEnumer able<_module.A>'
, which is something that @fabiomadge is working on right now, so that could explain why nobody found this error before.Exception in thread "main" java.lang.ArithmeticException: BigInteger divide by zero
Running... [Program halted] reflect: Call using *main.B as type *main.A
and nothing else displayedThe problem comes again from the fact that the type inference infers that a' is of type A and the bounds are a set of type Tr, and whereas there is some check for the foreach statement in every compiler, there is no check for compiling the forall because it compiles to a true mapping expression.
I'd say, all these errors would be automatically fixed if I implement my right solution..
Originally posted by @MikaelMayer in #1522 (comment)
The text was updated successfully, but these errors were encountered: