cgen error, when calling a generic function in a $for v in dc.variants { if dc is v {
block
#23454
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
V version: V 0.4.9 d2b30df, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg xx.v && xx
What did you see?
What did you expect to see?
a compiled program
Note: the generated C code around the error, looks like this:
i.e. V chose to use the
main__struct_values_T_main__Edge
variant for the generic function, even though the value was of typemain__FireFox
.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: