[Issue 3075] Implement parameter contravariance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 27 10:04:33 UTC 2019


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #29 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Walter Bright from comment #2)
> A test case:
> 
> void foo(void delegate(void[]) dg);
> 
> void test()
> {
>     void func(const(void)[] t)
>     {
>     }
> 
>     foo(&func);
> }

This test case compiles today. Is this issue fixed?

--


More information about the Digitalmars-d-bugs mailing list