We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V version: Latest commit OS: WSL 2
What did you do?
struct Foo { f int } fn (f &Foo) + (f1 &Foo) &Foo { return &Foo{f:f.f+f1.f} } f := &Foo{2} g := &Foo{3} println(f + g)
What did you expect to see?
&Foo2{ f: 5 }
What did you see instead?
main.v:10:9: error: invalid operator `+` to `&Foo` and `&Foo` 8 | f := &Foo{2} 9 | g := &Foo{3} 10 | println(f + g) | ~~~~~ 11 | 12 |
The text was updated successfully, but these errors were encountered:
Same for referenced generic operator overloading
struct Foo<T> { f T } fn (f &Foo<T>) + (f1 &Foo<T>) &Foo<T> { return &Foo<T>{f:f.f+f1.f} } f := &Foo<int>{2} g := &Foo<int>{3} println(f + g)
Sorry, something went wrong.
Delta456
No branches or pull requests
V version: Latest commit
OS: WSL 2
What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: