string interpolation does not correctly reports pointer when used with maps #21889
Labels
Auto str Method Generation
Bugs/feature requests, that are related to the automatic string method generation.
Bug
This tag is applied to issues which reports bugs.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Describe the bug
When using string interpolation with maps, the element printed is returned as a value the & of the pointer is not included in the returned string.
Reproduction Steps
Expected Behavior
the
expected
string of the example to be returnedCurrent Behavior
the
unexpected
string of the example is returnedPossible Solution
No response
Additional Information/Context
No response
V version
V 0.4.6 aa34047
Environment details (OS name and version, etc.)
V full version: V 0.4.6 aa34047
OS: macos, macOS, 14.5, 23F79
Processor: 10 cpus, 64bit, little endian, Apple M1 Max
getwd: /Users/thomas
vexe: /Users/thomas/Unix/local/v/master/v
vexe mtime: 2024-07-15 13:49:47
vroot: OK, value: /Users/thomas/Unix/local/v/master
VMODULES: OK, value: /Users/thomas/Unix/data/v/modules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.45.2
Git vroot status: weekly.2024.27-61-gaa340472 (7 commit(s) behind V master)
.git/config present: true
CC version: Apple clang version 15.0.0 (clang-1500.3.9.4)
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.
The text was updated successfully, but these errors were encountered: