mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-31 16:59:28 -04:00
When every argument was constant, the result took the value and type of the selected argument without checking the arguments against each other, so mismatched constants like `min(42, "string_literal")`, `min(i32(1), u8(2))` and `clamp(1.5, 42, "string_test")` were accepted, and `min(1, 2.5)` was an `int`. Unify the argument types before the constant and non-constant paths, as the non-constant path already did. Fixes #7975 Fixes #7976