Open vkuncak opened 3 weeks ago
The workaround is to explicitly type the result of the closure given to ensuring
,
@extern
def myTree1: Tree = {
Node()
} ensuring((res: Tree) => res.nodesGood)
Or explicitly widen the resulting expression:
@extern
def myTree1: Tree = {
Node() : Tree
} (_.nodesGood)
This:
gives:
in Stainless Version: 0.9.8.7-14-g7fd69e2