Thread overview
[Issue 19848] colliding named imports in function silently fail to overload
May 07, 2019
FeepingCreature
Aug 22, 2021
Witold Baryluk
Dec 17, 2022
Iain Buclaw
May 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19848

FeepingCreature <default_357-line@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |minor

--
August 22, 2021
https://issues.dlang.org/show_bug.cgi?id=19848

Witold Baryluk <witold.baryluk+d@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |witold.baryluk+d@gmail.com

--- Comment #1 from Witold Baryluk <witold.baryluk+d@gmail.com> ---
I just got hit by similar issue:


void main()
    import core.time : Duration, TickDuration, to;
    import std.conv : to;

    Duration dur;
    dur.to!TickDuration();
}





onlineapp.d(6): Error: template `core.time.to` cannot deduce function from
argument types `!(TickDuration)(Duration)`, candidates are:
/dlang/dmd/linux/bin64/../../src/druntime/import/core/time.d(1746):
`to(string units, T, D)(D td)`




Moving imports to be at module level is a workaround.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19848

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--