-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playground @LOCATION
and @FILE_LINE
interpolation problems
#23554
Comments
Connected to Huly®: V_0.6-21982 |
I think that the JS frontend of the playground treats |
|
At least as |
Describe the bug
When you
println
interpolated values@LOCATION
or@FILE_LINE
the compiler fails under two conditions:Reproduction Steps
Run in playground this https://play.vlang.io/p/1c01efec08 :
Explanation
ok
function works ok for all the variables within starting in every interpolation.workaround
function works because I started with anX
before@LOCATION
and@FILE_LINE
, only this way worked.fail_1
andfail_2
functions fail, anyone.Expected Behavior
Some boring list with values (all the recommended by the compiler...)
Current Behavior
Possible Solution
Workaround is to comment both
fail_1
andfail_2
calls in main, even is not necessary to comment the functions.Or in other words, do what
workaround
function don't start the print interpolation with the values.Additional Information/Context
Found while inspecting this issue: #23550
V version
V 0.4.9 6b0c272
Environment details (OS name and version, etc.)
Playground only.
For me only failed in playground. I ran the code in ubuntu and worked for
gcc
,clang
andtcc
so maybe the problem is specific to the plaground platform.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: