aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out')
-rw-r--r--v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out20
1 files changed, 20 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out b/v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out
new file mode 100644
index 0000000..029f9fe
--- /dev/null
+++ b/v_windows/v/vlib/v/checker/tests/struct_unneeded_default.out
@@ -0,0 +1,20 @@
+vlib/v/checker/tests/struct_unneeded_default.vv:2:10: error: unnecessary default value of `0`: struct fields are zeroed by default
+ 1 | struct Test {
+ 2 | n int = 0
+ | ^
+ 3 | s string = ''
+ 4 | b bool = false
+vlib/v/checker/tests/struct_unneeded_default.vv:3:13: error: unnecessary default value of '': struct fields are zeroed by default
+ 1 | struct Test {
+ 2 | n int = 0
+ 3 | s string = ''
+ | ~~
+ 4 | b bool = false
+ 5 | }
+vlib/v/checker/tests/struct_unneeded_default.vv:4:11: error: unnecessary default value `false`: struct fields are zeroed by default
+ 2 | n int = 0
+ 3 | s string = ''
+ 4 | b bool = false
+ | ~~~~~
+ 5 | }
+ 6 | \ No newline at end of file