Skip to content

Instantly share code, notes, and snippets.

@gsg
Created August 13, 2016 12:58
type t1 = [`Foo]
let name1 = function `Foo -> "foo"
type t2 = [t1 | `Bar]
let name2 = function #t1 as f -> name1 f | `Bar -> "bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment