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
270f47d0
Commit
270f47d0
authored
Aug 26, 2016
by
Guillaume Melquiond
Browse files
Add parentheses around complex type arguments when extracting to ocaml (bug #20670).
parent
4397bfd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/whyml/mlw_ocaml.ml
View file @
270f47d0
...
...
@@ -798,7 +798,7 @@ module Print = struct
print_lident
info
fmt
ts
|
Tapp
(
ts
,
[
ty
])
->
fprintf
fmt
(
protect_on
paren
"%a@ %a"
)
(
print_ty
info
)
ty
(
print_lident
info
)
ts
(
print_ty
~
paren
:
true
info
)
ty
(
print_lident
info
)
ts
|
Tapp
(
ts
,
tl
)
->
fprintf
fmt
(
protect_on
paren
"(%a)@ %a"
)
(
print_list
comma
(
print_ty
info
))
tl
...
...
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