Skip to content
Snippets Groups Projects
Commit 3c5a93b4 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Define type of init_val for reduction as Any

parent 9bbb8181
No related branches found
No related tags found
1 merge request!438Reduction Support
Pipeline #72170 failed
...@@ -195,6 +195,7 @@ class FreezeExpressions: ...@@ -195,6 +195,7 @@ class FreezeExpressions:
# match for reduction operation and set neutral init_val and new rhs (similar to augmented assignment) # match for reduction operation and set neutral init_val and new rhs (similar to augmented assignment)
new_rhs: PsExpression new_rhs: PsExpression
init_val: Any # TODO: type?
match expr.op: match expr.op:
case "+": case "+":
init_val = PsConstant(0) init_val = PsConstant(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment