If someone comes with a fix then rather use this test case since the original is not supposed to compile even with the bug fixed. This one does:
---
template memoize(alias fun)
{
alias Args = string;
void memoize(Args args) {}
}
template memoize(alias fun)
{
alias Args = int;
void memoize(Args args) {}
}
void main()
{
memoize!(a => a)("");
}
---
Comment #2 by b2.temp — 2023-10-16T08:55:00Z
*** This issue has been marked as a duplicate of issue 11662 ***