improve several tests in testament (#18635)
* silence error output from template_various.nim * any => auto in tests * avoid showing failed for parseSpec since this is expected behavior in 2 cases: tincludefile.nim, tnav1.nim * enforce InheritFromException * fixup
This commit is contained in:
parent
9269a72f6f
commit
24445d31b3
7 changed files with 38 additions and 39 deletions
|
|
@ -1,9 +1,9 @@
|
|||
proc baz(o: any): int = 5 # if bar is exported, it works
|
||||
proc baz(o: auto): int = 5 # if bar is exported, it works
|
||||
|
||||
type MyObj = object
|
||||
x: int
|
||||
|
||||
proc foo*(b: any) =
|
||||
proc foo*(b: auto) =
|
||||
var o: MyObj
|
||||
echo b.baz, " ", o.x.baz, " ", b.baz()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue