1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: check if mutable receivers are modified

This commit is contained in:
Alexander Medvednikov
2019-09-17 13:09:58 +03:00
parent 9c9e6290a6
commit 1397d532c6
9 changed files with 17 additions and 18 deletions

View File

@@ -166,7 +166,6 @@ const (
)
fn test_fixed() {
/*
mut nums := [4]int
assert nums[0] == 0
assert nums[1] == 0
@@ -177,7 +176,6 @@ fn test_fixed() {
///////
nums2 := [N]int
assert nums2[N - 1] == 0
*/
}
fn modify (numbers mut []int) {