Better support for attributes in captured primary constructor arguments

Topics: C# Language Design
Apr 7, 2014 at 11:10 PM
If I understand correctly, right now I have to write something like
public class MyClass([NotNull] [field: NotNull] int x) {}
if I want to apply the attribute to both field and parameter.

Would it be possible to add something like [all: NotNull] that fails if attribute does not support either?