diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-27 01:42:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 10:42:24 +0200 |
commit | 93c26041a5484373512069512471bbde943a7242 (patch) | |
tree | 1969ea8a6b542288b59591a7a4d5b98ed0635fee /tests/errmsgs/tundeclared_routine_compiles.nim | |
parent | b1c7c994b0bcd39776fce16bdda24358f1fbb0d4 (diff) | |
download | Nim-93c26041a5484373512069512471bbde943a7242.tar.gz |
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
Diffstat (limited to 'tests/errmsgs/tundeclared_routine_compiles.nim')
-rw-r--r-- | tests/errmsgs/tundeclared_routine_compiles.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/errmsgs/tundeclared_routine_compiles.nim b/tests/errmsgs/tundeclared_routine_compiles.nim new file mode 100644 index 000000000..21daf82bf --- /dev/null +++ b/tests/errmsgs/tundeclared_routine_compiles.nim @@ -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]() |