Open NicolasRouquette opened 3 years ago
Thanks for the report!
The error appears to come from there: https://github.com/epfl-lara/stainless/blob/391088ee6ea1154db23e1320d8f637b350c593c0/core/src/main/scala/stainless/verification/VerificationChecker.scala#L150-L152
@romac Any thoughts? What should we do when the invocation cannot be found?
@NicolasRouquette the list from Stainless library is invariant in its type parameter. The Scala standard library is not directly supported, but one could try to define a covariant list that more closely the covariant list of Scala, for example along the lines of this sketch: https://github.com/epfl-lara/bolts/tree/master/WIP/ScalaList
I tried to encode a simple directed graph library and crashed stainless with this error:
https://github.com/NicolasRouquette/stainless-bundle-closure/tree/10366df0c54395dd99bacb9451256c625d3ef5cc#v4-commit
This is with Stainless 0.7.4, sbt 1.3.0, scala 2.12.9 running on ubuntu 20.04