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
7bea7fc5
Commit
7bea7fc5
authored
Aug 26, 2016
by
Guillaume Melquiond
Browse files
Add parentheses around exception parameters in ocaml extraction (bug #20671).
parent
270f47d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/whyml/mlw_ocaml.ml
View file @
7bea7fc5
...
...
@@ -1005,7 +1005,7 @@ module Print = struct
fprintf
fmt
(
protect_on
paren
"raise %a"
)
(
print_uident
info
)
id
|
Eraise
(
Xident
id
,
Some
e1
)
->
fprintf
fmt
(
protect_on
paren
"raise (%a %a)"
)
(
print_uident
info
)
id
(
print_expr
info
)
e1
(
print_uident
info
)
id
(
print_expr
~
paren
:
true
info
)
e1
|
Etry
(
e1
,
bl
)
->
fprintf
fmt
"@[<v>@[<hv>@[<hov 2>begin@ try@ %a@]@ with@]@
\n
@[<hov>%a@]@
\n
end@]"
...
...
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