fix #17859; rename tests so they run in CI; merge several tests with nim check (#17862)

* rename a test so it runs in CI; merge several tests with nim check

* continue

* continue

* continue

* rename tests/errmsgs/undeclared_routine_compiles.nim -> tests/errmsgs/tundeclared_routine_compiles.nim
This commit is contained in:
Timothee Cour 2021-04-27 01:42:24 -07:00 • committed by GitHub
commit 93c26041a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 44 additions and 54 deletions

View file

@ -0,0 +1,11 @@
# D20180828T234921:here
template foo*(iter: untyped): untyped =
when compiles(iter.unexistingField): 0
elif compiles(iter.len): 1
else: 2
proc foo[A]()=
let a2 = @[10, 11]
let a3 = foo(pairs(a2))
foo[int]()