summary refs log tree commit diff stats
path: root/tests/proc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proc')
-rw-r--r--tests/proc/t8357.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/proc/t8357.nim b/tests/proc/t8357.nim
new file mode 100644
index 000000000..350ebe356
--- /dev/null
+++ b/tests/proc/t8357.nim
@@ -0,0 +1,10 @@
+discard """
+  output: "Hello"
+"""
+
+type
+  T = ref int
+
+let r = new(string)
+r[] = "Hello"
+echo r[]