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
$ gospel check file.mli
2 | (*@ y = f x *)
^
File "file.mli", line 2, characters 8-9:
Error: Type checking error: too few returned values: when a function returns
a tuple, the gospel header should name each member of the tuple; so
the header of a function returning a pair might be "x,y = ...".
But this is not the case for nested tuples, gospel check will be happy with
valf : int -> int* (int*int)
(*@ y,z = f x *)
But raises a syntax error with
valf : int -> int* (int*int)
(*@ y,(a,b) = f x *)
The text was updated successfully, but these errors were encountered:
Currently, Gospel doesn't accept:
But this is not the case for nested tuples, gospel check will be happy with
But raises a syntax error with
The text was updated successfully, but these errors were encountered: