diff --git a/src/cscompiler/components/CSCompiler_Expr.hx b/src/cscompiler/components/CSCompiler_Expr.hx index 7ef4d0e..6eaede9 100644 --- a/src/cscompiler/components/CSCompiler_Expr.hx +++ b/src/cscompiler/components/CSCompiler_Expr.hx @@ -286,10 +286,17 @@ class CSCompiler_Expr extends CSCompiler_Base { ) }) } - /* case TUnop(op, postFix, e): { - result = unopToCS(op, e, postFix); + haxeExpr: expr, + def: CSExprStatement({ + haxeExpr: expr, + type: csType, + def: CSUnop( + op, postFix, csStatementToExpr(_compileExpression(e)) + ) + }) } + /* case TFunction(tfunc): { // TODO: Lambda? }