summary refs log tree commit diff stats
path: root/tests/reject/tlet2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/tlet2.nim')
-rw-r--r--tests/reject/tlet2.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/reject/tlet2.nim b/tests/reject/tlet2.nim
deleted file mode 100644
index 8b1ddf940..000000000
--- a/tests/reject/tlet2.nim
+++ /dev/null
@@ -1,16 +0,0 @@
-discard """
-  line: "13"
-  errormsg: "for a 'var' type a variable needs to be passed"
-"""
-
-proc divmod(a, b: int, res, remainder: var int) =
-  res = a div b        # integer division
-  remainder = a mod b  # integer modulo operation
-
-let
-  x = 9
-  y = 3
-divmod(8, 5, x, y) # modifies x and y
-echo(x)
-echo(y)
-