v/vlib/v/fmt/tests/if_brace_on_newline_expecte...

13 lines
241 B
V

fn get_typ() Type {
{
{
// The opening brace should be put on a new line here for readability
if typ := c.resolve_generic_type(method.return_type, method.generic_names,
call_expr.generic_types)
{
return typ
}
}
}
}