-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not require parens for trailing fun.
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Parentheses | ||
|
||
let forall_intro #t (#p: t->Type0) (h: (x:t -> squash (p x))) : squash (forall x. p x) = | ||
Classical.Sugar.forall_intro _ _ h | ||
|
||
let trailing_fun_does_not_require_parens : | ||
squash (forall (x: nat) (y: nat). x + y >= 0) = | ||
forall_intro fun x -> forall_intro fun y -> () | ||
|
||
let trailing_fun_swallows_seqs : | ||
squash (forall (x: nat) (y: nat). x + y >= 0) = | ||
forall_intro fun x -> forall_intro fun y -> (); () |