------
struct S {
void sysMethod() @system {}
}
void fun() @safe {
union U {
void delegate() @system sysDg;
void delegate() @safe safeDg;
}
U u;
S s;
u.sysDg = &s.sysMethod;
// s.sysMethod(); // the compiler catches this
u.safeDg(); // but not this
}
------