30 references to AttributesNotAllowed
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
Semantics\PrimaryConstructorTests.cs (30)
7601("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 7602("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7603("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 7604("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 7605("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7606("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 7607("1908", NotUsedWarning | AttributesNotAllowed, "static C1() { [Attr1(p1)] return; }"), 7608("1909", NotUsedWarning | AttributesNotAllowed, "static void M() { [Attr1(p1)] return; }"), 7609("1911", NotUsedWarning | AttributesNotAllowed, "static int P { get { [Attr1(p1)] return 0; } }"), 7610("1912", NotUsedWarning | AttributesNotAllowed, "static int P { set { [Attr1(p1)] return; } }"), 7611("1913", NotUsedWarning | AttributesNotAllowed, "static int P { set {} get { [Attr1(p1)] return 0; } }"), 7612("1914", NotUsedWarning | AttributesNotAllowed, "static int P { get => 0; set { [Attr1(p1)] return; } }"), 7613("1915", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 7614("1916", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 7615("1917", NotUsedWarning | AttributesNotAllowed, "void M() { [Attr1(p1)] return; }"), 7616("1918", NotUsedWarning | AttributesNotAllowed, "int P { get { [Attr1(p1)] return 0; } }"), 7617("1919", NotUsedWarning | AttributesNotAllowed, "int P { set { [Attr1(p1)] return; } }"), 7618("1920", NotUsedWarning | AttributesNotAllowed, "int P { set {} get { [Attr1(p1)] return 0; } }"), 7619("1921", NotUsedWarning | AttributesNotAllowed, "int P { get => 0; set { [Attr1(p1)] return; } }"), 7620("1922", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 7621("1923", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 7622("1924", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get { [Attr1(p1)] return 0; } }"), 7623("1925", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set { [Attr1(p1)] return; } }"), 7624("1926", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set {} get { [Attr1(p1)] return 0; } }"), 7625("1927", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get => 0; set { [Attr1(p1)] return; } }"), 7626("1928", NotUsedWarning | AttributesNotAllowed, "~C1() { [Attr1(p1)] return; }"), 7627("1929", NotUsedWarning | AttributesNotAllowed, "public C1() : this(() => { [Attr1(p1)] return; }) {} C1(System.Action x) : this(0) {}"), 7628("1930", NotUsedWarning | AttributesNotAllowed, "public C1() : this(0) { [Attr1(p1)] return; }"), 7629("1935", NotUsedWarning | AttributesNotAllowed, "class Nested() : NestedBase(() => { [Attr1(p1)] return; }) {} class NestedBase(System.Action x) { object F = x; } "), 8154if ((flags & TestFlags.AttributesNotAllowed) != 0)