Issue 24744 - List candidates when no overloads match from different modules
Summary: List candidates when no overloads match from different modules
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2024-09-04 14:59 UTC by Nick Treleaven
Modified: 2024-09-05 00:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Treleaven 2024-09-04 14:59:58 UTC
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
Comment 1 Dlang Bot 2024-09-04 15:01:24 UTC
@ntrel updated dlang/dmd pull request #16826 "List candidates when no overloads match from different modules" fixing this issue:

- Fix Bugzilla 24744 - List candidates when no overloads match from different modules

https://github.com/dlang/dmd/pull/16826
Comment 2 Dlang Bot 2024-09-05 00:35:09 UTC
dlang/dmd pull request #16826 "List candidates when no overloads match from different modules" was merged into master:

- b3858dc5fba3c0c28fb4daae372a154e8d1873f5 by Nick Treleaven:
  Fix Bugzilla 24744 - List candidates when no overloads match from different modules

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