mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04: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
@ -14,6 +14,6 @@ fn test_isnil_charptr() {
|
||||
}
|
||||
|
||||
fn test_isnil_intptr() {
|
||||
pi := &int(0)
|
||||
pi := &int(unsafe { nil })
|
||||
assert isnil(pi)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user