summary refs log tree commit diff stats
path: root/tests/init/tlet_uninit4.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init/tlet_uninit4.nim')
-rw-r--r--tests/init/tlet_uninit4.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/init/tlet_uninit4.nim b/tests/init/tlet_uninit4.nim
new file mode 100644
index 000000000..c57d15ff8
--- /dev/null
+++ b/tests/init/tlet_uninit4.nim
@@ -0,0 +1,12 @@
+discard """
+  errormsg: "type mismatch: got <string>"
+"""
+
+{.experimental: "strictDefs".}
+
+proc foo(x: var string) =
+  echo x
+
+proc bar() =
+  let x: string
+  foo(x)