Skip to content

Instantly share code, notes, and snippets.

@gsg
Created April 26, 2016 06:46
Show Gist options
  • Save gsg/4dc03869f465c9ec57009169b07e03db to your computer and use it in GitHub Desktop.
Save gsg/4dc03869f465c9ec57009169b07e03db to your computer and use it in GitHub Desktop.
type foo = [`B | `C | `D]
let f (x : [`A | foo]) =
match x with
| `A -> true
| #foo as x -> ignore (x :> foo); true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment