summary refs log tree commit diff stats
path: root/tests/pragmas/t6448.nim
blob: a1bd747a0bc601330ccb1bb1c777a7bea4b64243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  errormsg: '''ambiguous call; both foobar.async'''
  line: 9
"""

import foobar
import asyncdispatch, macros

proc bar() {.async.} =
  echo 42

proc foo() {.async.} =
  await bar()

asyncCheck foo()
runForever()