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:
parent
71cd256f0c
commit
2e89eeb477
@ -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)'
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user