use typeof instead type (#16962)
This commit is contained in:
parent
4fac8af0c9
commit
d447c0fe3f
31 changed files with 253 additions and 253 deletions
|
|
@ -418,9 +418,9 @@ proc isValid1*[A](s: HashSet[A]): bool {.deprecated:
|
|||
result = s.data.len > 0
|
||||
# bug #11468
|
||||
|
||||
assert $type(a) == "Option[system.int]"
|
||||
foo(a, $type(b), c)
|
||||
foo(type(b), c) # this is ok
|
||||
assert $typeof(a) == "Option[system.int]"
|
||||
foo(a, $typeof(b), c)
|
||||
foo(typeof(b), c) # this is ok
|
||||
|
||||
proc `<`*[A](s, t: A): bool = discard
|
||||
proc `==`*[A](s, t: HashSet[A]): bool = discard
|
||||
|
|
|
|||
|
|
@ -423,9 +423,9 @@ proc isValid1*[A](s: HashSet[A]): bool {.deprecated:
|
|||
result = s.data.len > 0
|
||||
# bug #11468
|
||||
|
||||
assert $type(a) == "Option[system.int]"
|
||||
foo(a, $type(b), c)
|
||||
foo(type(b), c) # this is ok
|
||||
assert $typeof(a) == "Option[system.int]"
|
||||
foo(a, $typeof(b), c)
|
||||
foo(typeof(b), c) # this is ok
|
||||
|
||||
proc `<`*[A](s, t: A): bool = discard
|
||||
proc `==`*[A](s, t: HashSet[A]): bool = discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue