Operator +=
is not implemented for generic type alias type V2 = vec.Vec2[f32]
, even though vlib/math/vec/vec2.v:75
implements it for the parent type Vec2[T]
#23965
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Operator Overload
Type Aliases
Unit: Checker
Bugs/feature requests, that are related to the type checker.
V version: V 0.4.9 21874f9, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg b.v && b
What did you see?
What did you expect to see?
A compiled program, since math.vec does define the
+
operator invlib/math/vec/vec2.v:75
.Note also that
c := a + b
works, it is onlyc += a
that does not get inferred correctly and produces an error.Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: