2020-08-25 17:14:06 +02:00
|
|
|
vlib/v/checker/tests/string_index_assign_error.vv:3:6: error: cannot assign to s[i] since V strings are immutable
|
2020-08-13 23:33:18 +02:00
|
|
|
(note, that variables may be mutable but string values are always immutable, like in Go and Java)
|
2020-08-11 17:41:54 +02:00
|
|
|
1 | fn main() {
|
|
|
|
2 | mut a := 'V is great!!'
|
|
|
|
3 | a[0] = `R`
|
|
|
|
| ~~~
|
|
|
|
4 | }
|