require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -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()

View file

@ -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]:

View file

@ -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