summary refs log tree commit diff stats
path: root/tests/seq/t7346.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/seq/t7346.nim')
-rw-r--r--tests/seq/t7346.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/seq/t7346.nim b/tests/seq/t7346.nim
new file mode 100644
index 000000000..ef2fd5b79
--- /dev/null
+++ b/tests/seq/t7346.nim
@@ -0,0 +1,10 @@
+when not defined(nimNewRuntime):
+  {.error: "This bug could only be reproduced with --newruntime".}
+
+type
+  Obj = object
+    a: int
+
+proc `=`(a: var Obj, b: Obj) = discard
+
+let a: seq[Obj] = @[]
\ No newline at end of file