1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: make voidptr_casted_as_an_interface_test.v use voidptr again (it does test exactly that edge case, it should not have been converted to use nil)

This commit is contained in:
Delyan Angelov 2022-07-21 22:40:21 +03:00
parent 71cd256f0c
commit 2e89eeb477
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -15,7 +15,7 @@ fn f(i &IAbc) string {
}
fn test_voidptr_casted_as_an_interface_reference() {
mut pi := &IAbc(unsafe { nil })
mut pi := &IAbc(unsafe { voidptr(u64(0)) })
dump(pi)
assert f(pi) == '&IAbc(0x0)'
//