summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-toplevel/pr7060.ml
blob: e6ad740888079bcbce3d65b8fad727f08a8e5aa3 (plain)
1
2
3
4
5
6
7
8
9
10
(* TEST
   * toplevel
*)

type t = A | B;;
type u = C of t;;
let print_t out = function A -> Format.fprintf out "A";;
#install_printer print_t;;
B;;
C B;;