[Issue 21537] Function pointers' attributes not covariant when referencing (delegates' are)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 9 19:27:34 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21537
--- Comment #1 from Bolpat <qs.il.paperinik at gmail.com> ---
Related:
interface I
{
void f(const(void function() @safe)* fpp) @safe;
void g(const(void delegate() @safe)* dgp) @safe;
}
class C : I
{
override void f(const(void function())* fpp) @safe { } // error
(unexpected)
override void g(const(void delegate())* fpp) @safe { } // okay (expected)
}
--
More information about the Digitalmars-d-bugs
mailing list