use typeof instead type (#16962)

This commit is contained in:
flywind
2021-02-08 02:46:07 -06:00
committed by GitHub
parent 4fac8af0c9
commit d447c0fe3f
31 changed files with 253 additions and 253 deletions

View File

@@ -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