v/vlib/v/fmt/tests/fn_trailing_arg_syntax_inpu...

37 lines
568 B
V

struct Bar {
x string
y int
b Baz
}
struct Baz {
x int
y int
}
fn main() {
bar_func(x: 'this line is short enough', y: 13)
bar_func(x: 'a very long content should cause vfmt to use multiple lines instead of one.', y: 123456789)
bar_func(x: 'some string', b: Baz{
x: 0
y: 0
})
bar2_func()
bar2_func(Bar{x: 's'}, x: 's')
baz_func('foo', 'bar', x: 0
y: 0
)
ui.row(
//stretch: true
margin: Margin{top:10,left:10,right:10,bottom:10}
)
}
fn bar_func(bar Bar) {
}
fn bar2_func(bar1 Bar, bar2 Bar) {
}
fn baz_func(a string, b string, baz Baz) {}