diff --git a/transpiler/unary.go b/transpiler/unary.go index 8b75915a..0ed4ab7d 100644 --- a/transpiler/unary.go +++ b/transpiler/unary.go @@ -717,6 +717,21 @@ func transpileUnaryExprOrTypeTraitExpr(n *ast.UnaryExprOrTypeTraitExpr, p *progr case *ast.CallExpr: t = ty.Type + case *ast.CStyleCastExpr: + t = ty.Type + + case *ast.ConditionalOperator: + t = ty.Type + + case *ast.BinaryOperator: + t = ty.Type + + case *ast.IntegerLiteral: + t = ty.Type + + case *ast.StringLiteral: + t = ty.Type + default: panic(fmt.Sprintf("cannot do unary on: %#v", ty)) }