module B : sigtype Expr.attr += private Bool of int val bool : bool -> Expr.attr end = structtype Expr.attr += Bool of int let bool p = if p then Bool 1 else Bool 0 end
#let inspection_works = function | B.Bool p -> (p = 1) | _ -> true;;
module Msg : sigtype t = private .. module MkConstr (X : sigtype t end) : sigtype t += C of X.t endend = structtype t = .. module MkConstr (X : sigtype t end) = structtype t += C of X.t endend