Nim/tests/pragmas/t6448.nim
2018-10-09 19:58:23 +02:00

16 lines
226 B
Nim

discard """
line: 9
errormsg: '''ambiguous call; both foobar.async'''
"""
import foobar
import asyncdispatch, macros
proc bar() {.async.} =
echo 42
proc foo() {.async.} =
await bar()
asyncCheck foo()
runForever()