summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pouillard <np@nicolaspouillard.fr>2010-06-16 10:14:13 +0000
committerNicolas Pouillard <np@nicolaspouillard.fr>2010-06-16 10:14:13 +0000
commitf8f85bbab8a1cf6aa9ebe68f27ab6cf7ca3c6d16 (patch)
tree4e7d4289124f389764e1e25581f0e9747eb2364d
parent6bedd2b5e433ba353ca92b1fc0c5587784ded6cc (diff)
downloadocaml-f8f85bbab8a1cf6aa9ebe68f27ab6cf7ca3c6d16.tar.gz
Camlp4: Fix PR#4883
git-svn-id: http://caml.inria.fr/svn/ocaml/version/3.12@10579 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--camlp4/Camlp4/Printers/OCaml.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/camlp4/Camlp4/Printers/OCaml.ml b/camlp4/Camlp4/Printers/OCaml.ml
index 6e21198dca..dc48882e49 100644
--- a/camlp4/Camlp4/Printers/OCaml.ml
+++ b/camlp4/Camlp4/Printers/OCaml.ml
@@ -713,8 +713,6 @@ module Make (Syntax : Sig.Camlp4Syntax) = struct
(list o#simple_ctyp "@ ") [a::al]
| <:ctyp< [ > $t$ ] >> -> pp f "@[<2>[>@ %a@]@,]" o#sum_type t
| <:ctyp< # $i$ >> -> pp f "@[<2>#%a@]" o#ident i
- | <:ctyp< $t1$ == $t2$ >> ->
- pp f "@[<2>%a =@ %a@]" o#simple_ctyp t1 o#simple_ctyp t2
| <:ctyp< `$s$ >> -> pp f "`%a" o#var s
| <:ctyp< $t1$ * $t2$ >> -> pp f "%a *@ %a" o#simple_ctyp t1 o#simple_ctyp t2
| <:ctyp<>> -> assert False
@@ -740,6 +738,8 @@ module Make (Syntax : Sig.Camlp4Syntax) = struct
| <:ctyp< $t1$ and $t2$ >> -> pp f "%a@ and %a" o#ctyp t1 o#ctyp t2
| <:ctyp< mutable $t$ >> -> pp f "@[<2>mutable@ %a@]" o#ctyp t
| <:ctyp< $t1$ & $t2$ >> -> pp f "%a@ &@ %a" o#ctyp t1 o#ctyp t2
+ | <:ctyp< $t1$ == $t2$ >> ->
+ pp f "@[<2>%a =@ %a@]" o#simple_ctyp t1 o#ctyp t2
| Ast.TyDcl _ tn tp te cl -> do {
pp f "@[<2>%a%a@]" o#type_params tp o#var tn;
match te with