From cdefb878d6a75c8ca98f340b5b692971352bd4ae Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 21 Jul 2022 22:41:27 +0300 Subject: [PATCH] ci: make pass_voidptr_as_interface_reference_test.v use voidptr again --- .../pass_voidptr_as_interface_reference_test.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/tests/interface_edge_cases/pass_voidptr_as_interface_reference_test.v b/vlib/v/tests/interface_edge_cases/pass_voidptr_as_interface_reference_test.v index 661c85340e..1c808c2adb 100644 --- a/vlib/v/tests/interface_edge_cases/pass_voidptr_as_interface_reference_test.v +++ b/vlib/v/tests/interface_edge_cases/pass_voidptr_as_interface_reference_test.v @@ -15,5 +15,5 @@ fn test_passing_voidptr_as_an_interface_reference() { assert f(&i) == '&IAbc(Abc{})' // a voidptr() cast is an escape hatch, that should be allowed // but perhaps it should be forced by the compiler to be in unsafe{} - assert f(unsafe { nil }) == '&IAbc(0x0)' + assert f(unsafe { voidptr(u64(0)) }) == '&IAbc(0x0)' }