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
$ cat > foo.mli <<EOF> (*@ type m = A of unit | B of (unit * unit) *)> > type t> (*@ mutable model m : m *)> > val f : t -> bool> (*@ b = f t> ensures match t.m with | A _ -> true | B _ -> false *)> EOF$ gospel check foo.mliFile "foo.mli", line 8, characters 12-55:8 | ensures match t.m with | A _ -> true | B _ -> false *) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Error: The pattern-matching is redundant. Here is a case that is unused: B _.
The error message is confusing and this is syntax that OCaml compiler accepts.
The text was updated successfully, but these errors were encountered:
n-osborne
changed the title
Bad pattern-matching analysis on wild pattern for tuple
Bad pattern-matching analysis for tuple
Apr 19, 2024
The error message is confusing and this is syntax that OCaml compiler accepts.
The text was updated successfully, but these errors were encountered: