Generics: Passing an array of generic type without type annotation causes C error #23315
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Describe the bug
Passing an array that generic function returns to other generic function, it causes C error
Reproduction Steps
Expected Behavior
Successful compilation, or a V error
Current Behavior
Possible Solution
No response
Additional Information/Context
It compiles successfully when you add type annotation:
V version
V 0.4.9 fb5bac1
Environment details (OS name and version, etc.)
V full version: V 0.4.9 c4aaa2e.fb5bac1
OS: macos, macOS, 15.2, 24C101
Processor: 8 cpus, 64bit, little endian, Apple M3
getwd: /Users/syobon
vexe: /Users/syobon/.v/v
vexe mtime: 2024-12-30 09:17:55
vroot: OK, value: /Users/syobon/.v
VMODULES: OK, value: /Users/syobon/.vmodules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.39.5 (Apple Git-154)
Git vroot status: 0.4.9-55-gfb5bac11
.git/config present: true
CC version: Apple clang version 16.0.0 (clang-1600.0.26.6)
emcc version: N/A
thirdparty/tcc status: thirdparty-macos-arm64 713692d4
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.
Huly®: V_0.6-21747
The text was updated successfully, but these errors were encountered: