Comment #0 by qs.il.paperinik — 2021-01-11T01:18:39Z
As an example, an associative array of @safe function pointers cannot be passed to a function taking an associative array that has its value type the const version of the corresponding @system function pointers.
void f(const(void function())[string] aa) { }
void main()
{
void function() @safe fp = { };
void function() @safe[string] aa = [ "a": fp ];
f(aa); // error
}
For delegates instead of function pointers, the call to f compiles as it should.
Comment #1 by robert.schadek — 2024-12-13T19:13:59Z