mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
builtin: fix tests for isnil for -prod or -W, after the recent new cast warning (#24531)
This commit is contained in:
parent
89305aabe7
commit
9fd7e3e7c1
1 changed files with 1 additions and 1 deletions
|
@ -14,6 +14,6 @@ fn test_isnil_charptr() {
|
|||
}
|
||||
|
||||
fn test_isnil_intptr() {
|
||||
pi := &int(0)
|
||||
pi := &int(unsafe { nil })
|
||||
assert isnil(pi)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue