mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: wrap up unsafe { nil } (p. 3)
This commit is contained in:
@ -4,7 +4,7 @@ fn test_isnil_byteptr() {
|
||||
}
|
||||
|
||||
fn test_isnil_voidptr() {
|
||||
pv := voidptr(0)
|
||||
pv := unsafe { nil }
|
||||
assert isnil(pv)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user