* remove unnecessary when statement * remove outdated codes * fix #17177 * add testcase
This commit is contained in:
parent
e417bd62f7
commit
ec068a2687
2 changed files with 13 additions and 2 deletions
10
tests/js/t17177.nim
Normal file
10
tests/js/t17177.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import std/asyncjs
|
||||
|
||||
proc fn1(n: int): Future[int] {.async.} = return n
|
||||
proc main2() =
|
||||
proc fn2(n: int): Future[int] {.async.} = return n
|
||||
proc main3(a: auto) =
|
||||
proc fn3(n: int): Future[int] {.async.} = return n
|
||||
proc main4() {.async.} =
|
||||
proc fn4(n: int): Future[int] {.async.} = return n
|
||||
discard
|
||||
Loading…
Add table
Add a link
Reference in a new issue