mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix a[0]+='str'
This commit is contained in:
@ -871,3 +871,9 @@ fn test_mutli_array_index() {
|
||||
b[0][0] = 1
|
||||
assert '$b' == '[[1, 0, 0], [0, 0, 0]]'
|
||||
}
|
||||
|
||||
fn test_plus_assign_string() {
|
||||
mut a := ['']
|
||||
a[0] += 'abc'
|
||||
assert a == ['abc']
|
||||
}
|
||||
|
Reference in New Issue
Block a user