mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
add a testcase for laxeffects (#20750)
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user