mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
generics: fix errors & simplify
This commit is contained in:

committed by
Alexander Medvednikov

parent
82d4a731f3
commit
11aaee685a
@ -16,6 +16,7 @@ struct CGen {
|
||||
is_user bool
|
||||
mut:
|
||||
lines []string
|
||||
lines_extra []string
|
||||
typedefs []string
|
||||
type_aliases []string
|
||||
includes []string
|
||||
@ -102,6 +103,7 @@ fn (g mut CGen) resetln(s string) {
|
||||
fn (g mut CGen) save() {
|
||||
s := g.lines.join('\n')
|
||||
g.out.writeln(s)
|
||||
g.out.writeln(g.lines_extra.join('\n'))
|
||||
g.out.close()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user