### Nim Version Nim Compiler Version 2.3.1 [Linux: amd64] Compiled at 2025-09-13 Copyright (c) 2006-2025 by Andreas Rumpf git hash: ff9cae896ce900ac8e77ec9a51e09192653a1a49 active boot switches: -d:release ### Description ```nim proc foo[T: int](x: T) = echo "int" proc foo[T: uint](x: T) = echo "uint" foo(0'u) # ok foo(0'u8) # ok foo(0'i8) # ok foo(0.int) # ok foo(0) # fails ``` ### Current Output ```text ambiguous call error ``` ### Expected Output ```text uint uint int int int ``` ### Known Workarounds _No response_ ### Additional Information Works in Nim 1.6.20 and 2.0.8, fails in 2.0.10 to 2.0.16, 2.2.0 to 2.2.4 and devel.