diff options
Diffstat (limited to 'tests/reject/tnoop.nim')
-rw-r--r-- | tests/reject/tnoop.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/reject/tnoop.nim b/tests/reject/tnoop.nim new file mode 100644 index 000000000..d097553e8 --- /dev/null +++ b/tests/reject/tnoop.nim @@ -0,0 +1,6 @@ +# Tests the new check in the semantic pass + +var + a: int + +a() #ERROR_MSG expression 'a()' cannot be called |