You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vlib/v/checker/tests/check_err_msg_with_generics.out
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
vlib/datatypes/bstree.v:54:10: warning: cannot assign a reference to a value (this will be an error soon) left=datatypes.BSTreeNode[Result[[]Token, Err[string]]] false right=datatypes.BSTreeNode[Result[[]Token, Err[string]]] true ptr=true
2
+
52 | node.value = to_bind.value
3
+
53 | node.is_init = to_bind.is_init
4
+
54 | to_bind = new_none_node[T](false)
5
+
| ^
6
+
55 | }
7
+
56 |
8
+
vlib/datatypes/bstree.v:143:9: warning: cannot assign a reference to a value (this will be an error soon) left=datatypes.BSTreeNode[Result[[]Token, Err[string]]] false right=datatypes.BSTreeNode[Result[[]Token, Err[string]]] true ptr=true
9
+
141 | parent.right = new_none_node[T](false)
10
+
142 | }
11
+
143 | node = new_none_node[T](false)
12
+
| ^
13
+
144 | }
14
+
145 | return true
1
15
vlib/v/checker/tests/check_err_msg_with_generics.vv:15:10: error: cannot cast struct `datatypes.BSTree[Result[[]Token, Err[string]]]` to `int`
2
16
13 | fn test_err_msg() {
3
17
14 | typ := datatypes.BSTree[Result[[]Token, Err[string]]]{}
Copy file name to clipboardExpand all lines: vlib/v/checker/tests/generic_interface_err.out
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,3 @@ vlib/v/checker/tests/generic_interface_err.vv:10:6: error: can not find method `
14
14
9 | s := Struct{7}
15
15
10 | i := Interface(s)
16
16
| ~~~~~~~~~~~~
17
-
vlib/v/checker/tests/generic_interface_err.vv:10:6: error: `Struct` does not implement interface `Interface`, cannot cast `Struct` to interface `Interface`
vlib/datatypes/bstree.v:54:10: warning: cannot assign a reference to a value (this will be an error soon) left=datatypes.BSTreeNode[KeyVal[int]] false right=datatypes.BSTreeNode[KeyVal[int]] true ptr=true
2
+
52 | node.value = to_bind.value
3
+
53 | node.is_init = to_bind.is_init
4
+
54 | to_bind = new_none_node[T](false)
5
+
| ^
6
+
55 | }
7
+
56 |
8
+
vlib/datatypes/bstree.v:143:9: warning: cannot assign a reference to a value (this will be an error soon) left=datatypes.BSTreeNode[KeyVal[int]] false right=datatypes.BSTreeNode[KeyVal[int]] true ptr=true
0 commit comments