diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-08-08 10:28:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-08 19:28:49 +0200 |
commit | 24445d31b394a120a8571c0d9dc4ab07b7672cd7 (patch) | |
tree | 73c28122c09a96fda4c2f759fbf062e6d26dde83 /tests/generics/mdotlookup.nim | |
parent | 9269a72f6f6f19e4bcffce82ad47c68755e7a696 (diff) | |
download | Nim-24445d31b394a120a8571c0d9dc4ab07b7672cd7.tar.gz |
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
Diffstat (limited to 'tests/generics/mdotlookup.nim')
-rw-r--r-- | tests/generics/mdotlookup.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/generics/mdotlookup.nim b/tests/generics/mdotlookup.nim index 470fa0a51..3112c133f 100644 --- a/tests/generics/mdotlookup.nim +++ b/tests/generics/mdotlookup.nim @@ -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() |