aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv16
1 files changed, 16 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv b/v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv
new file mode 100644
index 0000000..85b2a4d
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/struct_required_field.vv
@@ -0,0 +1,16 @@
+struct Abc {
+ f1 int [required]
+ f2 int
+ f3 int [required]
+}
+
+fn main() {
+ _ = Abc{
+ f1: 123
+ f3: 789
+ }
+ _ = Abc{
+ f1: 123
+ f2: 789
+ }
+}