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
checker: dimension checking error when mut array is passed multiple times as args #20172
Labels
Bug
This tag is applied to issues which reports bugs.
Comments
fn foo(mut arr []int) {
arr << 1
bar(mut arr)
}
fn bar(mut arr [][]int) {
println(arr)
}
fn main() {
mut arr := [1, 2, 3]
foo(mut arr)
} run:
|
shove70
added a commit
to shove70/v
that referenced
this issue
Dec 14, 2023
shove70
added a commit
to shove70/v
that referenced
this issue
Dec 14, 2023
shove70
added a commit
to shove70/v
that referenced
this issue
Dec 14, 2023
shove70
added a commit
to shove70/v
that referenced
this issue
Dec 15, 2023
shove70
added a commit
to shove70/v
that referenced
this issue
Dec 15, 2023
spytheman
pushed a commit
that referenced
this issue
Dec 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Reproduction Steps
When it is non-mut, everything is normal
Expected Behavior
error:
Current Behavior
compile passed.
Possible Solution
No response
Additional Information/Context
No response
V version
latest master
Environment details (OS name and version, etc.)
macos, linux
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: