Smart casting does not work with ORM #23239
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: Checker
Bugs/feature requests, that are related to the type checker.
Describe the bug
When I try to use smart casting with ORM, it does not compile.
Reproduction Steps
Expected Behavior
compile and run without error
Current Behavior
Possible Solution
No response
Additional Information/Context
Dynamic casting works:
V version
V 0.4.9 3953445
Environment details (OS name and version, etc.)
V full version: V 0.4.9 c4aaa2e.3953445
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-22 04:45:19
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: weekly.2024.49-140-g39534459
.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-21673
The text was updated successfully, but these errors were encountered: