mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
15 lines
253 B
Nim
15 lines
253 B
Nim
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()
|