fix: infer float context from division

This commit is contained in:
2026-10-22 11:51:48 +02:00
parent bbf39c16c5
commit bc318a29ad
4 changed files with 8 additions and 5 deletions
+3
View File
@@ -179,6 +179,9 @@ check proc(
expression :: ast.binary_expr(tree, id)
try numeric_operand(&state, id, expression.left)
try numeric_operand(&state, id, expression.right)
if (expression.operator == .divide) {
try impose(&state, id, .float, .integer_division, expression.span)
}
}
else: {}
}