diff options
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/struct_pub_field.vv')
-rw-r--r-- | v_windows/v/old/vlib/v/checker/tests/struct_pub_field.vv | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/struct_pub_field.vv b/v_windows/v/old/vlib/v/checker/tests/struct_pub_field.vv new file mode 100644 index 0000000..1f104ca --- /dev/null +++ b/v_windows/v/old/vlib/v/checker/tests/struct_pub_field.vv @@ -0,0 +1,10 @@ +struct Foo { + i int +} + +fn main() { + a := Foo{ + i: 1 + } + a.i = 2 +} |