Issue 12529 - Function/delegate type alias picks up @safe attribute from surrounding scope

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