Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
1c011548
Commit
1c011548
authored
Jul 21, 2016
by
MARCHE Claude
Committed by
Guillaume Melquiond
Aug 26, 2016
Browse files
Bugfix 20618: need for parenthesis around (fun x -> ) in ocaml extraction
parent
7bea7fc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/bts/20618.mlw
0 → 100644
View file @
1c011548
module Bug
use HighOrd
type foo = { a: unit -> unit ; b : unit }
constant bar : foo = {
a = \_. () ;
b = ()
}
end
src/whyml/mlw_ocaml.ml
View file @
1c011548
...
...
@@ -950,7 +950,7 @@ module Print = struct
fprintf
fmt
(
protect_on
paren
"@[<hov 2>%a@ %a@]"
)
(
print_expr
info
)
e
(
print_list
space
(
print_expr_p
info
))
el
|
Efun
(
vl
,
e1
)
->
fprintf
fmt
(
protect_on
paren
"@[<hov 2>fun %a ->@ %a@]"
)
fprintf
fmt
(
protect_on
paren
"@[<hov 2>
(
fun %a ->@ %a
)
@]"
)
(
print_list
space
(
print_vs_arg
info
))
vl
(
print_expr
info
)
e1
;
forget_vars
vl
|
Econstr
(
c
,
[]
)
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment