Skip to content

Instantly share code, notes, and snippets.

@samoht
Last active August 29, 2015 14:02
Show Gist options
  • Save samoht/266f8c365952e36fe447 to your computer and use it in GitHub Desktop.
Save samoht/266f8c365952e36fe447 to your computer and use it in GitHub Desktop.
module type LIST = (module type of List)
module M (X: sig end) = struct
module K = (val (match Random.int 2 with 0 -> assert false | _ -> (module List)): LIST)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment