add a testcase for laxeffects (#20750)
This commit is contained in:
parent
4503fa5422
commit
090661d46c
1 changed files with 11 additions and 0 deletions
11
tests/effects/tlaxeffects.nim
Normal file
11
tests/effects/tlaxeffects.nim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue