Skip to content

Instantly share code, notes, and snippets.

@aav

aav/ut.pony Secret

Last active February 14, 2017 19:15
Show Gist options
  • Save aav/c7beda4b14820ce21b4155efe23df3f9 to your computer and use it in GitHub Desktop.
Save aav/c7beda4b14820ce21b4155efe23df3f9 to your computer and use it in GitHub Desktop.
primitive Type1
primitive Type2
type Union is (Type1 | Type2)
primitive Test
fun f1(): Union =>
Type1
fun f2() =>
let r: Union = f1()
match r
| Union =>
None
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment