add a testcase for laxeffects (#20750)

This commit is contained in:
ringabout 2022-11-04 12:43:32 +08:00 • committed by GitHub
commit 090661d46c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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