Merge branch 'master' of github.com:Araq/Nimrod into upstream

This commit is contained in:
Zahary Karadjov
2013-05-12 16:14:46 +03:00
4 changed files with 29 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
discard """
errormsg: 'type mismatch'
line: 7
"""
proc p(q: proc() ): proc() {.tags: [], raises: [], closure.} =
return proc () =
q()
let yay = p(proc () = raise newException(EIO, "IO"))
proc main() {.raises: [], tags: [].} = yay()
main()