Reminder: this one needs to be updated when merging in 2.4 to avoid introducing a bug, as 2.4 allow it on properties and methods as well.