Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ffeb3d4 authored by Andrei Paskevich's avatar Andrei Paskevich
Browse files

WhyML: allow return types with names: f (a:int) : (x: int, ghost y: int)

These names are only visible under "ensures" but not under "returns".
If the result is named, the special variable "result" is not used.
In a tuple, either each component should be named, or none at all.
Underscores are allowed. Parentheses around the return type are required.
Each name must be given its own type: "f () : (x y: int)" is rejected.
Identifiers without cast are treated as types, not as names.
To name the result without giving its type, use "returns".
parent 76d42ea4
Branches
Tags
No related merge requests found
Showing
with 1566 additions and 1643 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment