summary refs log tree commit diff stats
path: root/tests/system/timmutableinc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/timmutableinc.nim')
-rw-r--r--tests/system/timmutableinc.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/system/timmutableinc.nim b/tests/system/timmutableinc.nim
new file mode 100644
index 000000000..e857800b3
--- /dev/null
+++ b/tests/system/timmutableinc.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "type mismatch: got <int>"
+  file: "timmutableinc.nim"
+  line: 8
+"""
+var x = 0
+
+inc(x+1)