You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
method Test<T>(ghost s: iset<T>) {
}
ghostfunction domain<T>(s: seq<T>): iset<T> {
iset t: T | t in s
}
method TestWrapper<T>(s: seq<T>) {
var d :=domain(s);
Test(d);
}
Command to run and resulting output
dafny verify
What happened?
It complains that the type parameter of TestWrapper should support equality when it's not necessary. So there are two contradicting issues here:
The type parameter of domain is not inferred to require equality although it returns a ghost iset
The type parameter of Test is inferred to require equality because of a ghost iset.
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered:
Dafny version
latest-nightly
Code to produce this issue
Command to run and resulting output
What happened?
It complains that the type parameter of TestWrapper should support equality when it's not necessary. So there are two contradicting issues here:
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered: