require errormsg to be specified before file.
This commit is contained in:
parent
ca394ebd95
commit
1105d03644
264 changed files with 305 additions and 623 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 9
|
||||
errormsg: '''ambiguous call; both foobar.async'''
|
||||
line: 9
|
||||
"""
|
||||
|
||||
import foobar
|
||||
|
|
@ -9,7 +9,7 @@ import asyncdispatch, macros
|
|||
proc bar() {.async.} =
|
||||
echo 42
|
||||
|
||||
proc foo() {.async.} =
|
||||
proc foo() {.async.} =
|
||||
await bar()
|
||||
|
||||
asyncCheck foo()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 9
|
||||
errormsg: "cannot attach a custom pragma to 'a'"
|
||||
line: 9
|
||||
"""
|
||||
|
||||
for a {.gensym, inject.} in @[1,2,3]:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "can raise an unlisted exception: ref Exception"
|
||||
file: "tuserpragma2.nim"
|
||||
line: 11
|
||||
errormsg: "can raise an unlisted exception: ref Exception"
|
||||
"""
|
||||
|
||||
# bug #7216
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue