C error on &(arr.last() as Type)
#23528
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
V version: V 0.4.9 11c59cf, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg /Users/adamoates/Documents/test.v && /Users/adamoates/Documents/test
What did you see?
What did you expect to see?
Expected code to compile and for
&(fbs.last() as Foo)
to be equal to&(fbs[0] as Foo)
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: