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

fix fmt test

This commit is contained in:
Alexander Medvednikov 2020-02-22 17:07:03 +01:00
parent d510cd1e0d
commit dd29bfe4d2
2 changed files with 10 additions and 11 deletions

View File

@ -75,8 +75,7 @@ fn get_user() ?User {
} }
fn get_user_ptr() &User { fn get_user_ptr() &User {
return &User{ return &User{ }
}
} }
struct Foo { struct Foo {

View File

@ -1098,7 +1098,7 @@ fn (p mut Parser) if_expr() ast.Expr {
// typ: typ // typ: typ
pos: pos pos: pos
has_else : has_else has_else: has_else
// left: left // left: left
} }
@ -1302,7 +1302,7 @@ fn (p mut Parser) const_decl() ast.ConstDecl {
mut exprs := []ast.Expr mut exprs := []ast.Expr
for p.tok.kind != .rpar { for p.tok.kind != .rpar {
name := p.prepend_mod(p.check_name()) name := p.prepend_mod(p.check_name())
// println('const: $name') // println('!!const: $name')
p.check(.assign) p.check(.assign)
expr,typ := p.expr(0) expr,typ := p.expr(0)
fields << ast.Field{ fields << ast.Field{