summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-01-04 03:24:52 -0600
committerGitHub <noreply@github.com>2021-01-04 10:24:52 +0100
commitc80261bc00c2be59216f945e7915699f6adab690 (patch)
tree57a7fa9ffc2cea5ad786897d9e006e7bc0c1f3a4 /tests
parent763fef59fa9bf618f9b546dcb199872b5d8ee890 (diff)
downloadNim-c80261bc00c2be59216f945e7915699f6adab690.tar.gz
fix #12311 (#16578)
Diffstat (limited to 'tests')
-rw-r--r--tests/system/tsystem_misc.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/tsystem_misc.nim b/tests/system/tsystem_misc.nim
index 508715905..cb879d3b3 100644
--- a/tests/system/tsystem_misc.nim
+++ b/tests/system/tsystem_misc.nim
@@ -210,3 +210,10 @@ block: # Ordinal
   # doAssert enum is Ordinal # fails
   # doAssert Ordinal is SomeOrdinal
   # doAssert SomeOrdinal is Ordinal
+
+block:
+  proc p() = discard
+
+  doAssert not compiles(echo p.rawProc.repr)
+  doAssert not compiles(echo p.rawEnv.repr)
+  doAssert not compiles(echo p.finished)