v2 / vlib / v / tests / comptime / comptime_for_break_test.v
17 lines · 16 sloc · 204 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1struct Test {
2 a string
3 b string
4}
5
6fn test_for() {
7 $for field in Test.fields {
8 for attr in field.attrs {
9 break
10 }
11 }
12 $for field in Test.fields {
13 for attr in field.attrs {
14 continue
15 }
16 }
17}
18