mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
13 lines
187 B
Nim
13 lines
187 B
Nim
discard """
|
|
cmd: "nim c $file"
|
|
"""
|
|
|
|
import std/asyncdispatch
|
|
|
|
type
|
|
A {.inheritable.} = ref object
|
|
B = ref object of A
|
|
|
|
method a(x: A): Future[A] {.async, base.} =
|
|
B(await a(B()))
|