fix type_alias test

pull/4301/head
Alexander Medvednikov 2020-04-08 22:34:14 +02:00
parent 1c340174b7
commit 3f480a358e
1 changed files with 3 additions and 1 deletions

View File

@ -1414,7 +1414,9 @@ fn (g mut Gen) infix_expr(node ast.InfixExpr) {
g.write(',')
g.expr(node.right)
g.write(')')
} else if node.op in [.plus, .minus, .mul, .div] && (left_sym.name[0].is_capital() || left_sym.name.contains('.')) {
} else if node.op in [.plus, .minus, .mul, .div] && (left_sym.name[0].is_capital() || left_sym.name.contains('.')) &&
left_sym.kind != .alias {
// !left_sym.is_number() {
g.write(g.typ(node.left_type))
g.write('_')
g.write(util.replace_op(node.op.str()))