summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-11-04 12:43:32 +0800
committerGitHub <noreply@github.com>2022-11-04 12:43:32 +0800
commit090661d46cefdb62ff376fd2ce316c5a052752f3 (patch)
tree4087faa5758e0732ac1ea947fe3c25ad82791816
parent4503fa5422db80ef8286113780af9d526b953574 (diff)
downloadNim-090661d46cefdb62ff376fd2ce316c5a052752f3.tar.gz
add a testcase for laxeffects (#20750)
-rw-r--r--tests/effects/tlaxeffects.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/effects/tlaxeffects.nim b/tests/effects/tlaxeffects.nim
new file mode 100644
index 000000000..7eedc372a
--- /dev/null
+++ b/tests/effects/tlaxeffects.nim
@@ -0,0 +1,11 @@
+discard """
+  cmd: "nim $target $options --legacy:laxEffects $file"
+"""
+
+
+type
+  Foo = object
+    bar: seq[Foo]
+
+proc `==`(a, b: Foo): bool =
+  a.bar == b.bar