fix: infer float context from division
This commit is contained in:
@@ -56,8 +56,8 @@ propagates_numeric_context_before_defaulting_forward_and_mutable_aliases test {
|
||||
`seed := 3
|
||||
`backward :: 4
|
||||
`demand float :: backward
|
||||
`quotient float :: 3 / 2
|
||||
`mixed :: 3.0 / 2
|
||||
`quotient :: -3 / 2 + 1
|
||||
`mixed :: 3 / 2
|
||||
`plain :: -3 + 2 * 4
|
||||
`fraction :: 1.5
|
||||
`text :: "honey"
|
||||
@@ -112,7 +112,7 @@ rejects_fixed_family_conversion_integer_division_and_conflicting_demands test {
|
||||
`widen float :: fixed
|
||||
`narrow int :: 1.5
|
||||
`cross :: fixed + real
|
||||
`division :: 3 / 2
|
||||
`division :: fixed / 2
|
||||
`negated :: -"x"
|
||||
`strings :: "a" + "b"
|
||||
`first_int int :: conflict_a
|
||||
|
||||
Reference in New Issue
Block a user