summary refs log tree commit diff stats
path: root/tests/js/tasyncjs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/tasyncjs.nim')
-rw-r--r--tests/js/tasyncjs.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/js/tasyncjs.nim b/tests/js/tasyncjs.nim
index 3de143643..f3b273c44 100644
--- a/tests/js/tasyncjs.nim
+++ b/tests/js/tasyncjs.nim
@@ -99,4 +99,9 @@ block asyncPragmaInType:
   proc foo() {.async.} = discard
   var x: Handler = foo
 
+block: # 13341
+  proc f {.async.} =
+    proc g: int =
+      result = 123
+
 discard main()