Skip to content

Instantly share code, notes, and snippets.

@dom96
Created January 17, 2014 15:58
Show Gist options
  • Save dom96/75825cdca7256291f5ed to your computer and use it in GitHub Desktop.
Save dom96/75825cdca7256291f5ed to your computer and use it in GitHub Desktop.
proc f[T](x: T) =
{.error: "My error".}
proc f(x: string) =
echo x
proc f(x: int) =
echo (x+1)
f(2) # Works
f(2.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment