summary refs log tree commit diff stats
path: root/tests/errmsgs/tdont_show_system.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/tdont_show_system.nim')
-rw-r--r--tests/errmsgs/tdont_show_system.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/errmsgs/tdont_show_system.nim b/tests/errmsgs/tdont_show_system.nim
new file mode 100644
index 000000000..164fdd801
--- /dev/null
+++ b/tests/errmsgs/tdont_show_system.nim
@@ -0,0 +1,13 @@
+discard """
+  errormsg: "expression 'true' is of type 'bool' and has to be used (or discarded)"
+  line: 13
+  file: "tdont_show_system.nim"
+"""
+
+# bug #4308
+
+#proc getGameTile: int =
+#  1 > 0
+
+# bug #4905  subsumes the problem of #4308:
+true notin {false}