Bug 24744 – List candidates when no overloads match from different modules

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-09-04T14:59:58Z
Last change time
2024-09-05T00:35:09Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2024-09-04T14:59:58Z
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 by dlang-bot — 2024-09-04T15:01:24Z
@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 by dlang-bot — 2024-09-05T00:35:09Z
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