summary refs log tree commit diff stats
path: root/tests/vm/tnocompiletimefunclambda.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/tnocompiletimefunclambda.nim')
-rw-r--r--tests/vm/tnocompiletimefunclambda.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/vm/tnocompiletimefunclambda.nim b/tests/vm/tnocompiletimefunclambda.nim
new file mode 100644
index 000000000..d134eea40
--- /dev/null
+++ b/tests/vm/tnocompiletimefunclambda.nim
@@ -0,0 +1,6 @@
+discard """
+  errormsg: "request to generate code for .compileTime proc: :anonymous"
+"""
+
+let a = func(a: varargs[int]) {.compileTime, closure.} =
+  discard a[0]
\ No newline at end of file