use typeof instead type (#16962)
This commit is contained in:
parent
4fac8af0c9
commit
d447c0fe3f
31 changed files with 253 additions and 253 deletions
|
|
@ -76,7 +76,7 @@ when defined(windows):
|
|||
|
||||
template check(expr) =
|
||||
let r = expr
|
||||
if r == cast[type(r)](0):
|
||||
if r == cast[typeof(r)](0):
|
||||
raiseOSError(osLastError())
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue