add a testcase for laxeffects (#20750)

This commit is contained in:
ringabout
2022-11-04 12:43:32 +08:00
committed by GitHub
parent 4503fa5422
commit 090661d46c

View File

@@ -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