You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# v -b js test.v
test.v:2:21: error: unknown method or field: `string.split_any`.
Did you mean `split`?
1 | fn main() {
2 | println('foo bar'.split_any(' '))
| ~~~~~~~~~~~~~~
3 | }
test.v:2:3: error: `println` can not print void expressions
1 | fn main() {
2 | println('foo bar'.split_any(' '))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 | }
If the code of your project is in multiple files, try with `v .` instead of `v test.v`
[I] root@trump
Describe the bug
The js backend lacks a string.split_any method.
Reproduction Steps
Expected Behavior
Should compile and output:
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 387af74
Environment details (OS name and version, etc.)
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: