Created
February 23, 2016 02:07
-
-
Save def-/4ca66849c41042788906 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 f = | |
raise newException(ValueError, "foo") | |
proc g {.raises: [].} = | |
f() | |
# Fails with a nice error: | |
# x.nim(4, 18) template/generic instantiation from here | |
# x.nim(2, 3) Error: can raise an unlisted exception: ref ValueError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment