mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
use typeof instead type (#16962)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user