1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: put the opening brace on a new line again for infix (#8336)

This commit is contained in:
Lukas Neubert
2021-01-26 11:19:32 +01:00
committed by GitHub
parent 3790bd67e3
commit 2007dbc7b5
4 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,12 @@
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
}
}
}
}

View File

@ -0,0 +1,10 @@
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
}
}
}
}