Fix property enforcement in `std.traits.functionAttributes`
Merge pull request #2428 from denis-sh/fix-property-enforcement-in-`std.traits.functionAttributes`

Fix property enforcement in `std.traits.functionAttributes`