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

Dennis <[email protected]> changed:

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

--- Comment #2 from Dennis <[email protected]> ---
This compilation output is correct.
https://dlang.org/spec/function.html#function-overloading

Both functions have match level 3: match with qualifier conversion.
That's because `in` makes the parameter `const`, so `ubyte[]` needs to be
converted to `const(ubyte)[]`. Then partial ordering determines
`const(ubyte)[16]` to be more specialized than `const(ubyte)[]`, so the fixed
size version is chosen.

--

Reply via email to