v2 / vlib / v / fmt / tests / if_brace_on_newline_input.vv
10 lines · 10 sloc · 234 bytes · 2007dbc7b5abaac8c524af1bbc5c32502521d69b
Raw
1fn get_typ() Type {
2 {
3 {
4 // The opening brace should be put on a new line here for readability
5 if typ := c.resolve_generic_type(method.return_type, method.generic_names, call_expr.generic_types) {
6 return typ
7 }
8 }
9 }
10}
11