Skip to content

Allow users to redefine the list operators #133

@kit-ty-kate

Description

@kit-ty-kate

(* TODO: Make this work *)
(*
let test_list_redefined ctxt =
let module M = struct
type redef_list =
| []
| (::) of int * int
type t = {field : int list} [@@deriving to_yojson]
let x = {field = List.([1;2])}
end
in
let expected = `List [`Int 1; `Int 2] in
assert_equal ~ctxt ~printer:show_json expected M.x
*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions