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

update repls tests

This commit is contained in:
Alexander Medvednikov
2019-11-13 20:39:58 +03:00
parent 65426821c4
commit 3b929cdd03
3 changed files with 13 additions and 13 deletions

View File

@@ -9,19 +9,19 @@ ints.len = 0 // Error (field len immutable)
println('BYE')
===output===
.vrepl_temp.v:3:5: cannot modify immutable field `len` (type `string`)
cannot modify immutable field `len` (type `string`)
declare the field with `mut:`
struct string {
mut:
len int
}
.vrepl_temp.v:4:5: cannot modify immutable field `len` (type `array`)
cannot modify immutable field `len` (type `array`)
declare the field with `mut:`
struct array {
mut:
len int
}
.vrepl_temp.v:5:8: cannot modify immutable field `len` (type `array`)
cannot modify immutable field `len` (type `array`)
declare the field with `mut:`
struct array {
mut: