pull/3635/head
Alexander Medvednikov 2020-02-03 10:58:15 +01:00
parent 1ac7a95f9b
commit 2af3c0ede4
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@ fn (g mut Gen) stmt(node ast.Stmt) {
g.write('return') g.write('return')
// multiple returns // multiple returns
if it.exprs.len > 1 { if it.exprs.len > 1 {
// t := g.table.get_type(g.fn_decl.ti.idx) println('MULT RET')
println(g.fn_decl.ti.idx)
println(g.fn_decl.ti.name)
// ttln( := g.table.get_type(g.fn_decl.ti.idx)
ti := g.table.refresh_ti(g.fn_decl.ti) ti := g.table.refresh_ti(g.fn_decl.ti)
g.write(' ($ti.name){') g.write(' ($ti.name){')
for i, expr in it.exprs { for i, expr in it.exprs {