Created
May 7, 2019 07:42
-
-
Save GULPF/655c616fd4c19f2f138b8f48a717aa78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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