bpo-43892: Validate the first term of complex literal value patterns (GH-25735)
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index 254dd64..c1fdea3 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -825,7 +825,7 @@ astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state)
break;
case MatchAs_kind:
if (node_->v.MatchAs.pattern) {
- CALL(astfold_pattern, expr_ty, node_->v.MatchAs.pattern);
+ CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern);
}
break;
case MatchOr_kind: