Closed vincenzopalazzo closed 2 years ago
To reproduce:
struct Foo {}
fn insert_helper(mut node Foo) {
if node == 0 {}
}
fn main() {}
This should be a checker error. Objects can't be compared to 0.
This should be a checker error. Objects can't be compared to 0.
I will try to fix it by tomorrow
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg vlib/datatypes/rbtree_test.v
What did you expect to see?
an V checker error where is explained because I can do a == 0 on a mutable object
What did you see instead?