From 090661d46cefdb62ff376fd2ce316c5a052752f3 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 4 Nov 2022 12:43:32 +0800 Subject: add a testcase for laxeffects (#20750) --- tests/effects/tlaxeffects.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/effects/tlaxeffects.nim (limited to 'tests/effects') 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 -- cgit 1.4.1-2-gfad0