fix a bug in strings.Builder and wrap up vfmt

This commit is contained in:
Alexander Medvednikov 2019-11-11 08:04:37 +03:00
parent 1cda5c1bc8
commit d9b29bfb4e
5 changed files with 21 additions and 9 deletions

View file

@ -238,7 +238,6 @@ fn (p mut Parser) struct_init(typ string) string {
p.warn('type `$t.name` is private')
}
if p.gen_struct_init(typ, t) { return typ }
p.scanner.fmt_out.cut(typ.len)
ptr := typ.contains('*')
mut did_gen_something := false
// Loop thru all struct init keys and assign values