-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
_option_ functions are used on non-option types in cgen #24047
Copy link
Copy link
Closed
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Option TypeBugs/feature requests, that are related to `?Type`.Bugs/feature requests, that are related to `?Type`.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.Option TypeBugs/feature requests, that are related to `?Type`.Bugs/feature requests, that are related to `?Type`.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 issues without a type.
Describe the bug
_option_functions are used on non-option types in cgenReproduction Steps
Expected Behavior
bCurrent Behavior
println(NIL)Possible Solution
No response
Additional Information/Context
This C code is generated for the above code:
_t3here is of typestring, is passed to_option_ok, which only accepts option typesV version
V 0.4.10 e968139
Environment details (OS name and version, etc.)
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.