[Issue 24744] New: List candidates when no overloads match from different modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 4 14:59:58 UTC 2024


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

          Issue ID: 24744
           Summary: List candidates when no overloads match from different
                    modules
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org

>From the dmd test suite:
---
module imports.range15788;

auto iota(B, E, S)(B, E, S)
{
}
---
import imports.range15788 : iota;

void iota() {}

struct S {}

void main()
{
    S s;
    iota(s, s);
}
---
This gives:
ice15788.d(20): Error: none of the overloads of `iota` are callable using
argument types `!()(S, S)`

It should list the overloads.

Fix: https://github.com/dlang/dmd/pull/16826

--


More information about the Digitalmars-d-bugs mailing list