[Issue 24255] Can't deduce parameter type of function literal used as argument in IFTI

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 2 14:11:28 UTC 2024


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

--- Comment #2 from basile-z <b2.temp at gmx.com> ---
to be more clear

```
void fun(T)(T t, void function(T) f) {}

void argOK(int){}
void argNG(OtherT)(OtherT ot){}

void main()
{
    fun(123, &argOK);
    fun(123, &argNG); // semantically equivalent to the original test case
} 
```

--


More information about the Digitalmars-d-bugs mailing list