v2 / vlib / v / fmt / tests / if_brace_on_newline_expected.vv
12 lines · 12 sloc · 241 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,
6 call_expr.generic_types)
7 {
8 return typ
9 }
10 }
11 }
12}
13