-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
C error in for _, i in generic array requesting to set mut i #24360
Copy link
Copy link
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Generics[T]Bugs/feature requests, that are related to the V generics.Bugs/feature requests, that are related to the V generics.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: cgenBugs/feature requests, that are related to the default C generating backend.Bugs/feature requests, that are related to the default C generating backend.
Description
Metadata
Metadata
Assignees
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Generics[T]Bugs/feature requests, that are related to the V generics.Bugs/feature requests, that are related to the V generics.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: cgenBugs/feature requests, that are related to the default C generating backend.Bugs/feature requests, that are related to the default C generating backend.
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
Next function can't be compiled as compiler request
ito set as mutable:After changing for line to
for _, mut i in t {we got a C error.Reproduction Steps
Expected Behavior
Current Behavior
Possible Solution
Workaround:
Additional Information/Context
No response
V version
V 0.4.10 0897939
Environment details (OS name and version, etc.)
https://play.vlang.io/p/34d4cae2ee
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.