This is not supported, of course. But now, instead of an assertion failure we properly mark the declaration as unavailable. Fixes #78190. rdar://141492654