diff options
Diffstat (limited to 'v_windows/v/vlib/v/tests/repl/immutable_len_fields/fields.2.repl.skip')
-rw-r--r-- | v_windows/v/vlib/v/tests/repl/immutable_len_fields/fields.2.repl.skip | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/tests/repl/immutable_len_fields/fields.2.repl.skip b/v_windows/v/vlib/v/tests/repl/immutable_len_fields/fields.2.repl.skip new file mode 100644 index 0000000..60e3929 --- /dev/null +++ b/v_windows/v/vlib/v/tests/repl/immutable_len_fields/fields.2.repl.skip @@ -0,0 +1,11 @@ +mut a := []string +a.len = 0 // Error (field len immutable) +'BYE' +===output=== +cannot modify immutable field `len` (type `array`) +declare the field with `mut:` +struct array { +mut: + len int +} +BYE |