mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 15:23:27 +00:00
* implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
19 lines
284 B
Nim
19 lines
284 B
Nim
discard """
|
|
cmd: "nim c $file"
|
|
action: "compile"
|
|
"""
|
|
|
|
proc taggy() {.tags: RootEffect.} = discard
|
|
|
|
proc m {.raises: [], tags: [].} =
|
|
{.cast(noSideEffect).}:
|
|
echo "hi"
|
|
|
|
{.cast(raises: []).}:
|
|
raise newException(ValueError, "bah")
|
|
|
|
{.cast(tags: []).}:
|
|
taggy()
|
|
|
|
m()
|