diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-02-08 02:46:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 09:46:07 +0100 |
commit | d447c0fe3f39114f0913df5804e5f7a3406d6edb (patch) | |
tree | a1ec482ca0b184819dc0fdffe463e53cf6959b72 /tests/array/tarray.nim | |
parent | 4fac8af0c9408ee2a8d454693d17fd84067d24c3 (diff) | |
download | Nim-d447c0fe3f39114f0913df5804e5f7a3406d6edb.tar.gz |
use typeof instead type (#16962)
Diffstat (limited to 'tests/array/tarray.nim')
-rw-r--r-- | tests/array/tarray.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/array/tarray.nim b/tests/array/tarray.nim index eadb53ac1..81a43f203 100644 --- a/tests/array/tarray.nim +++ b/tests/array/tarray.nim @@ -344,11 +344,11 @@ block troofregression: if $a != b: echo "Failure ", a, " != ", b - check type(4 ...< 1), "HSlice[system.int, system.int]" - check type(4 ...< ^1), "HSlice[system.int, system.BackwardsIndex]" - check type(4 ... pred(^1)), "HSlice[system.int, system.BackwardsIndex]" - check type(4 ... mypred(8)), "HSlice[system.int, system.int]" - check type(4 ... mypred(^1)), "HSlice[system.int, system.BackwardsIndex]" + check typeof(4 ...< 1), "HSlice[system.int, system.int]" + check typeof(4 ...< ^1), "HSlice[system.int, system.BackwardsIndex]" + check typeof(4 ... pred(^1)), "HSlice[system.int, system.BackwardsIndex]" + check typeof(4 ... mypred(8)), "HSlice[system.int, system.int]" + check typeof(4 ... mypred(^1)), "HSlice[system.int, system.BackwardsIndex]" var rot = 8 |