Skip to content
Snippets Groups Projects

Fix handling of constness in Typifier

Merged Frederik Hennig requested to merge fhennig/fix-const-typing into backend-rework
All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -304,10 +304,10 @@ class Typifier:
if ctr.symbol.dtype is None:
ctr.symbol.apply_dtype(self._ctx.index_dtype)
tc_lhs = TypeContext(ctr.symbol.dtype)
self.visit_expr(start, tc_lhs)
self.visit_expr(stop, tc_lhs)
self.visit_expr(step, tc_lhs)
tc_index = TypeContext(ctr.symbol.dtype)
self.visit_expr(start, tc_index)
self.visit_expr(stop, tc_index)
self.visit_expr(step, tc_index)
self.visit(body)
Loading