v2: cgen: remove type resolving for VarDecl
parent
6489b48c9c
commit
40fd918b58
|
@ -117,12 +117,7 @@ fn (g mut Gen) stmt(node ast.Stmt) {
|
|||
}
|
||||
ast.VarDecl {
|
||||
mut typ := it.typ
|
||||
if typ.kind == .unresolved {
|
||||
// g.write('/*unresolved*/')
|
||||
// ti = table.void_type // g.table.get_expr_ti(it.expr)
|
||||
typ = g.checker.expr(it.expr)
|
||||
}
|
||||
g.write('$typ.name $it.name = ')
|
||||
g.write('$it.typ.name $it.name = ')
|
||||
g.expr(it.expr)
|
||||
g.writeln(';')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue