Fix regression w/ templates defined in async proc

This commit is contained in:
LemonBoy
2018-10-03 18:25:25 +02:00
parent 91c13a0163
commit 2c0bfb34fd
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
discard """
output: 42
"""
import asyncdispatch
proc foo(): Future[int] {.async.} =
template ret() = return 42
ret()
echo (waitFor foo())