summary refs log tree commit diff stats
path: root/tests/pragmas/t6448.nim
blob: 61e4a35d9b46f1addf4d95d26c58283d94396656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()