From 7aac2aa9545d4ebf83b87c69504dcf3a646f1f18 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Thu, 11 Jul 2024 23:44:21 -0300 Subject: [PATCH] fix: enum with no associated values --- src/transpiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transpiler.rs b/src/transpiler.rs index cca7624..d08cf23 100644 --- a/src/transpiler.rs +++ b/src/transpiler.rs @@ -180,7 +180,7 @@ impl JsTranspiler { .join(", "); format!("new {}.{}({})", target, call, args_str) } else { - format!("new {}.{}", target, call) + format!("{}.{}", target, call) } } Expr::FunctionCall(name, args, _) => {