From d1e741d687f0111f72a418407f498afb3c5a8a87 Mon Sep 17 00:00:00 2001 From: mertcandav Date: Thu, 28 Mar 2024 19:14:49 +0300 Subject: [PATCH] julefmt: fix casting expression formatting --- src/format.jule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format.jule b/src/format.jule index 22657c0..70751d6 100644 --- a/src/format.jule +++ b/src/format.jule @@ -1286,9 +1286,9 @@ impl ExprFormatter { self.write("(") self.fmt.format_type(c.kind) self.write(")") - self.write("(") + // Do not write parentheses for expression. + // Expression formatter will add. self.format(c.expr) - self.write(")") } fn nselect(&self, ns: &ast::NsSelectionExpr) {