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