diff --git a/vlib/v/tests/interface_edge_cases/voidptr_casted_as_an_interface_test.v b/vlib/v/tests/interface_edge_cases/voidptr_casted_as_an_interface_test.v index e9fce35552..cc80e121b5 100644 --- a/vlib/v/tests/interface_edge_cases/voidptr_casted_as_an_interface_test.v +++ b/vlib/v/tests/interface_edge_cases/voidptr_casted_as_an_interface_test.v @@ -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)' //