https://issues.dlang.org/show_bug.cgi?id=14802

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Steven Schveighoffer <[email protected]> ---
template deduction depends on "common type" deduction.

For two types that implicitly cast to each other, it has to make an arbitrary
decision. Same thing happens with 1, 1U.

However, when it cannot implicitly convert one to the other, the decision is to
use the one that both can accept. For example: 1, 1L yields the same type as
1L, 1.

--

Reply via email to