| 1 | struct Bar { |
| 2 | x string |
| 3 | y int |
| 4 | b Baz |
| 5 | } |
| 6 | |
| 7 | struct Baz { |
| 8 | x int |
| 9 | y int |
| 10 | } |
| 11 | |
| 12 | fn main() { |
| 13 | bar_func(x: 'this line is short enough', y: 13) |
| 14 | bar_func(x: 'a very long content should cause vfmt to use multiple lines instead of one.', y: 123456789) |
| 15 | bar_func(x: 'some string', b: Baz{ |
| 16 | x: 0 |
| 17 | y: 0 |
| 18 | }) |
| 19 | bar2_func() |
| 20 | bar2_func(Bar{x: 's'}, x: 's') |
| 21 | baz_func('foo', 'bar', x: 0 |
| 22 | y: 0 |
| 23 | ) |
| 24 | ui.row( |
| 25 | //stretch: true |
| 26 | margin: Margin{top:10,left:10,right:10,bottom:10} |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | fn bar_func(bar Bar) { |
| 31 | } |
| 32 | |
| 33 | fn bar2_func(bar1 Bar, bar2 Bar) { |
| 34 | } |
| 35 | |
| 36 | fn baz_func(a string, b string, baz Baz) {} |
| 37 | |