We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Node{123, unsafe { nil }, unsafe { nil }}
1 parent 50075d5 commit ee4a179Copy full SHA for ee4a179
vlib/v/tests/string_ref_struct_test.v
@@ -9,3 +9,9 @@ fn test_string_ref_struct() {
9
println(n.left)
10
assert '$n.left' == '&nil'
11
}
12
+
13
+fn test_string_ref_struct_with_nil_instead_of_0() {
14
+ n := Node{123, unsafe { nil }, unsafe { nil }}
15
+ println(n.left)
16
+ assert '$n.left' == '&nil'
17
+}
0 commit comments