Skip to content

Instantly share code, notes, and snippets.

@GULPF
Created May 7, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GULPF/655c616fd4c19f2f138b8f48a717aa78 to your computer and use it in GitHub Desktop.
Save GULPF/655c616fd4c19f2f138b8f48a717aa78 to your computer and use it in GitHub Desktop.
proc foo(x: int8) = discard
proc bar(x: range[0'i8..1'i8]) = discard
var x = 1.int
echo compiles(foo(x)) # false
echo compiles(bar(x)) # true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment