On 3/1/24 16:23, Patrick Palka wrote:

Sorry for not asking this sooner, but does it matter whether we attach
the attribute to the function type rather than the function declaration?
I noticed e.g. nodiscard gets attached to the decl.

And we document it as a function attribute despite attaching it to the
function type.

I think it doesn't matter much, some attributes are represented on the type and some on the decl. Might be a bit better on the decl but I wasn't worrying about it.

Jason

Reply via email to