From dc1c4aff0e832695a6e0036dc1b8eaf6df5a9faf Mon Sep 17 00:00:00 2001 From: DSLstandard Date: Sun, 4 Aug 2024 15:53:27 +0800 Subject: [PATCH] core: fix bug in fold_assign_pattern --- nac3core/src/typecheck/type_inferencer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/typecheck/type_inferencer/mod.rs b/nac3core/src/typecheck/type_inferencer/mod.rs index aa07c225..cdeeeb83 100644 --- a/nac3core/src/typecheck/type_inferencer/mod.rs +++ b/nac3core/src/typecheck/type_inferencer/mod.rs @@ -1973,7 +1973,7 @@ impl<'a> Inferencer<'a> { expected_value_ty, Located { location: pattern.location, - node: ExprKind::List { ctx: ExprContext::Store, elts }, + node: ExprKind::Tuple { ctx: ExprContext::Store, elts }, custom: None, }, ))