aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip')
-rw-r--r--v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip19
1 files changed, 19 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip b/v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip
new file mode 100644
index 0000000..509218b
--- /dev/null
+++ b/v_windows/v/vlib/v/tests/repl/chained_fields/ef.repl.skip
@@ -0,0 +1,19 @@
+struct E { mut: v []int } struct F { e []E } mut f := F{}
+f.e << E{} // Error (field e immutable)
+f.e[0].v << 1 // Error (field e immutable)
+e := E{}
+e.v << 1 // Error (e immutable)
+===output===
+cannot modify immutable field `e` (type `F`)
+declare the field with `mut:`
+struct F {
+mut:
+ e []E
+}
+cannot modify immutable field `e` (type `F`)
+declare the field with `mut:`
+struct F {
+mut:
+ e []E
+}
+`e` is immutable (can't <<)