reflection.type_of panics for C strings #19595
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
The
reflection.type_of[T](v T)
panics when it is called with a C string value.Reproduction Steps
Expected Behavior
It prints the type of C string.
Current Behavior
It prints the following error:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.2 44045c6
Environment details (OS name and version, etc.)
V full version: V 0.4.2 44045c6
OS: macos, macOS, 14.0, 23A344
Processor: 12 cpus, 64bit, little endian, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
getwd: /private/tmp
vexe: /Users/<user_name>/workspace/v/v
vexe mtime: 2023-10-16 00:41:11
vroot: OK, value: /Users/<user_name>/workspace/v
VMODULES: OK, value: /Users/<user_name>/.vmodules
VTMP: OK, value: /tmp/v_501
env VFLAGS: "-use-os-system-to-run"
Git version: git version 2.33.0
Git vroot status: weekly.2023.41-20-g44045c65 (9 commit(s) behind V master)
.git/config present: true
CC version: Apple clang version 15.0.0 (clang-1500.0.40.1)
thirdparty/tcc status: thirdparty-macos-amd64 46662e2
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: