1
0
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:
joe-conigliaro
2019-11-30 00:46:43 +11:00
committed by Alexander Medvednikov
parent 82d4a731f3
commit 11aaee685a
5 changed files with 84 additions and 110 deletions

View File

@ -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()
}