Fails to deduce generic type when spawning a thread inside a generic function #22484
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.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
It appers the C generation fails when a generic function tries to spawn a thread for another generic function with a channel.
Reproduction Steps
Run the program:
Expected Behavior
Should print
1
.Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.8 18eee34.2ca3fdf
Environment details (OS name and version, etc.)
V full version: V 0.4.8 18eee34.2ca3fdf
OS: windows, Microsoft Windows 11 Pro v22631 64-bit
Processor: 32 cpus, 64bit, little endian
Git version: git version 2.42.0.windows.2
Git vroot status: 0.4.8-87-g2ca3fdfa-dirty
.git/config present: true
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: