446 references to NotUsedWarning
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (446)
Semantics\PrimaryConstructorTests.cs (446)
6516("0004", BadReference | NotUsedWarning | Shadows, "public static int F = p1;"), 6517("0005", BadReference | NotUsedWarning | Shadows | BadConstant, "public const int F = p1;"), 6518("0006", BadReference | NotUsedWarning | Shadows, "public static int P {get;} = p1;"), 6519("0007", BadReference | NotUsedWarning | Shadows, "public static event System.Action E = () => p1.ToString();"), 6520("0008", BadReference | NotUsedWarning, "static C1() { p1 = 0; }"), 6521("0009", BadReference | NotUsedWarning, "static void M() { p1 = 0; }"), 6522("0011", BadReference | NotUsedWarning, "static int P { get { return p1; } }"), 6523("0012", BadReference | NotUsedWarning, "static int P { set { p1 = 0; } }"), 6524("0013", BadReference | NotUsedWarning, "static int P { set {} get { return p1; } }"), 6525("0014", BadReference | NotUsedWarning, "static int P { get => 0; set { p1 = 0; } }"), 6526("0015", BadReference | NotUsedWarning, "static event System.Action E { add { p1 = 0; } remove {} }"), 6527("0016", BadReference | NotUsedWarning, "static event System.Action E { add {} remove { p1 = 0; } }"), 6543("0101", BadReference | NotUsedWarning, "class Nested { public int F = p1; }"), 6544("0102", BadReference | NotUsedWarning, "class Nested { public int P {get;} = p1; }"), 6545("0103", BadReference | NotUsedWarning, "class Nested { public event System.Action E = () => p1.ToString(); }"), 6546("0104", BadReference | NotUsedWarning, "class Nested { public static int F = p1; }"), 6547("0106", BadReference | NotUsedWarning, "class Nested { public static int P {get;} = p1; }"), 6548("0107", BadReference | NotUsedWarning, "class Nested { public static event System.Action E = () => p1.ToString(); }"), 6549("0108", BadReference | NotUsedWarning, "class Nested { static Nested() { p1 = 0; } }"), 6550("0109", BadReference | NotUsedWarning, "class Nested { static void M() { p1 = 0; } }"), 6551("0111", BadReference | NotUsedWarning, "class Nested { static int P { get { return p1; } } }"), 6552("0112", BadReference | NotUsedWarning, "class Nested { static int P { set { p1 = 0; } } }"), 6553("0113", BadReference | NotUsedWarning, "class Nested { static int P { set {} get { return p1; } } }"), 6554("0114", BadReference | NotUsedWarning, "class Nested { static int P { get => 0; set { p1 = 0; } } }"), 6555("0115", BadReference | NotUsedWarning, "class Nested { static event System.Action E { add { p1 = 0; } remove {} } }"), 6556("0116", BadReference | NotUsedWarning, "class Nested { static event System.Action E { add {} remove { p1 = 0; } } }"), 6557("0117", BadReference | NotUsedWarning, "class Nested { void M() { p1 = 0; } }"), 6558("0118", BadReference | NotUsedWarning, "class Nested { int P { get { return p1; } } }"), 6559("0119", BadReference | NotUsedWarning, "class Nested { int P { set { p1 = 0; } } }"), 6560("0120", BadReference | NotUsedWarning, "class Nested { int P { set {} get { return p1; } } }"), 6561("0121", BadReference | NotUsedWarning, "class Nested { int P { get => 0; set { p1 = 0; } } }"), 6562("0122", BadReference | NotUsedWarning, "class Nested { event System.Action E { add { p1 = 0; } remove {} } }"), 6563("0123", BadReference | NotUsedWarning, "class Nested { event System.Action E { add {} remove { p1 = 0; } } }"), 6564("0124", BadReference | NotUsedWarning, "class Nested { int this[int x] { get { return p1; } } }"), 6565("0125", BadReference | NotUsedWarning, "class Nested { int this[int x] { set { p1 = 0; } } }"), 6566("0126", BadReference | NotUsedWarning, "class Nested { int this[int x] { set {} get { return p1; } } }"), 6567("0127", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => 0; set { p1 = 0; } } }"), 6568("0128", BadReference | NotUsedWarning, "class Nested { ~Nested() { p1 = 0; } }"), 6569("0129", BadReference | NotUsedWarning, "class Nested { public Nested() : this(p1) {} Nested(int x) {} }"), 6570("0130", BadReference | NotUsedWarning, "class Nested { public Nested() { p1 = 0; } }"), 6573("0301", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public int F = 0;"), 6574("0302", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public int P {get;} = 0;"), 6575("0303", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public event System.Action E = () => 0.ToString();"), 6576("0304", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static int F = 0;"), 6577("0305", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public const int F = 0;"), 6578("0306", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static int P {get;} = 0;"), 6579("0307", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static event System.Action E = () => 0.ToString();"), 6580("0308", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static C1() {}"), 6581("0309", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static void M() {}"), 6582("0311", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { get { return 0; } }"), 6583("0312", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { set {} }"), 6584("0313", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { set {} get { return 0; } }"), 6585("0314", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { get => 0; set {} }"), 6586("0315", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static event System.Action E { add {} remove {} }"), 6587("0316", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static event System.Action E { add {} remove {} }"), 6588("0317", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] void M() {}"), 6589("0318", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { get { return 0; } }"), 6590("0319", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { set {} }"), 6591("0320", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { set {} get { return 0; } }"), 6592("0321", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { get => 0; set {} }"), 6593("0322", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] event System.Action E { add {} remove {} }"), 6594("0323", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] event System.Action E { add {} remove {} }"), 6595("0324", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { get { return 0; } }"), 6596("0325", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { set {} }"), 6597("0326", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { set {} get { return 0; } }"), 6598("0327", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { get => 0; set {} }"), 6599("0328", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] ~C1() {}"), 6600("0329", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public C1() : this(0) {}"), 6601("0330", BadReference | NotUsedWarning | BadAttributeValue, "static int P { [Attr1(p1)] get { return 0; } }"), 6602("0331", BadReference | NotUsedWarning | BadAttributeValue, "static int P { [Attr1(p1)] set {} }"), 6603("0332", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { [Attr1(p1)] add {} remove {} }"), 6604("0333", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add {} [Attr1(p1)] remove {} }"), 6605("0334", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] class Nested {}"), 6606("0335", BadReference | NotUsedWarning | BadAttributeValue, "class Nested([Attr1(p1)] int p2) { public int F = p2; }"), 6609("0401", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public int F = 0; }"), 6610("0402", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public int P {get;} = 0; }"), 6611("0403", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public event System.Action E = () => 0.ToString(); }"), 6612("0404", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static int F = 0; }"), 6613("0406", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static int P {get;} = 0; }"), 6614("0407", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static event System.Action E = () => 0.ToString(); }"), 6615("0408", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static Nested() {} }"), 6616("0409", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static void M() {} }"), 6617("0411", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { get { return 0; } } }"), 6618("0412", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { set {} } }"), 6619("0413", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { set {} get { return 0; } } }"), 6620("0414", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { get => 0; set {} } }"), 6621("0415", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static event System.Action E { add {} remove {} } }"), 6622("0416", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static event System.Action E { add {} remove {} } }"), 6623("0417", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] void M() {} }"), 6624("0418", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { get { return 0; } } }"), 6625("0419", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { set {} } }"), 6626("0420", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { set {} get { return 0; } } }"), 6627("0421", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { get => 0; set {} } }"), 6628("0422", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] event System.Action E { add {} remove {} } }"), 6629("0423", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] event System.Action E { add {} remove {} } }"), 6630("0424", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { get { return 0; } } }"), 6631("0425", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { set {} } }"), 6632("0426", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { set {} get { return 0; } } }"), 6633("0427", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { get => 0; set {} } }"), 6634("0428", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] ~Nested() {} }"), 6635("0430", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public Nested() {} }"), 6636("0431", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static int P { [Attr1(p1)] get { return 0; } } }"), 6637("0432", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static int P { [Attr1(p1)] set {} } }"), 6638("0433", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static event System.Action E { [Attr1(p1)] add {} remove {} } }"), 6639("0434", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static event System.Action E { add {} [Attr1(p1)] remove {} } }"), 6640("0435", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] class Nested2 {} }"), 6641("0436", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { class Nested2([Attr1(p1)] int p2) { public int F = p2; } }"), 6644("0501", NotUsedWarning, "[Attr1(nameof(p1))] public int F = 0;"), 6645("0502", NotUsedWarning, "[Attr1(nameof(p1))] public int P {get;} = 0;"), 6646("0503", NotUsedWarning, "[Attr1(nameof(p1))] public event System.Action E = () => 0.ToString();"), 6647("0504", NotUsedWarning, "[Attr1(nameof(p1))] public static int F = 0;"), 6648("0505", NotUsedWarning, "[Attr1(nameof(p1))] public const int F = 0;"), 6649("0506", NotUsedWarning, "[Attr1(nameof(p1))] public static int P {get;} = 0;"), 6650("0507", NotUsedWarning, "[Attr1(nameof(p1))] public static event System.Action E = () => 0.ToString();"), 6651("0508", NotUsedWarning, "[Attr1(nameof(p1))] static C1() {}"), 6652("0509", NotUsedWarning, "[Attr1(nameof(p1))] static void M() {}"), 6653("0511", NotUsedWarning, "[Attr1(nameof(p1))] static int P { get { return 0; } }"), 6654("0512", NotUsedWarning, "[Attr1(nameof(p1))] static int P { set {} }"), 6655("0513", NotUsedWarning, "[Attr1(nameof(p1))] static int P { set {} get { return 0; } }"), 6656("0514", NotUsedWarning, "[Attr1(nameof(p1))] static int P { get => 0; set {} }"), 6657("0515", NotUsedWarning, "[Attr1(nameof(p1))] static event System.Action E { add {} remove {} }"), 6658("0516", NotUsedWarning, "[Attr1(nameof(p1))] static event System.Action E { add {} remove {} }"), 6659("0517", NotUsedWarning, "[Attr1(nameof(p1))] void M() {}"), 6660("0518", NotUsedWarning, "[Attr1(nameof(p1))] int P { get { return 0; } }"), 6661("0519", NotUsedWarning, "[Attr1(nameof(p1))] int P { set {} }"), 6662("0520", NotUsedWarning, "[Attr1(nameof(p1))] int P { set {} get { return 0; } }"), 6663("0521", NotUsedWarning, "[Attr1(nameof(p1))] int P { get => 0; set {} }"), 6664("0522", NotUsedWarning, "[Attr1(nameof(p1))] event System.Action E { add {} remove {} }"), 6665("0523", NotUsedWarning, "[Attr1(nameof(p1))] event System.Action E { add {} remove {} }"), 6666("0524", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { get { return 0; } }"), 6667("0525", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { set {} }"), 6668("0526", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { set {} get { return 0; } }"), 6669("0527", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { get => 0; set {} }"), 6670("0528", NotUsedWarning, "[Attr1(nameof(p1))] ~C1() {}"), 6671("0529", NotUsedWarning, "[Attr1(nameof(p1))] public C1() : this(0) {}"), 6672("0530", NotUsedWarning, "static int P { [Attr1(nameof(p1))] get { return 0; } }"), 6673("0531", NotUsedWarning, "static int P { [Attr1(nameof(p1))] set {} }"), 6674("0532", NotUsedWarning, "static event System.Action E { [Attr1(nameof(p1))] add {} remove {} }"), 6675("0533", NotUsedWarning, "static event System.Action E { add {} [Attr1(nameof(p1))] remove {} }"), 6676("0534", NotUsedWarning, "[Attr1(nameof(p1))] class Nested {}"), 6677("0535", NotUsedWarning, "class Nested([Attr1(nameof(p1))] int p2) { public int F = p2; }"), 6680("0601", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public int F = 0; }"), 6681("0602", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public int P {get;} = 0; }"), 6682("0603", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public event System.Action E = () => 0.ToString(); }"), 6683("0604", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static int F = 0; }"), 6684("0606", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static int P {get;} = 0; }"), 6685("0607", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static event System.Action E = () => 0.ToString(); }"), 6686("0608", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static Nested() {} }"), 6687("0609", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static void M() {} }"), 6688("0611", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { get { return 0; } } }"), 6689("0612", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { set {} } }"), 6690("0613", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { set {} get { return 0; } } }"), 6691("0614", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { get => 0; set {} } }"), 6692("0615", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static event System.Action E { add {} remove {} } }"), 6693("0616", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static event System.Action E { add {} remove {} } }"), 6694("0617", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] void M() {} }"), 6695("0618", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { get { return 0; } } }"), 6696("0619", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { set {} } }"), 6697("0620", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { set {} get { return 0; } } }"), 6698("0621", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { get => 0; set {} } }"), 6699("0622", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] event System.Action E { add {} remove {} } }"), 6700("0623", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] event System.Action E { add {} remove {} } }"), 6701("0624", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { get { return 0; } } }"), 6702("0625", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { set {} } }"), 6703("0626", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { set {} get { return 0; } } }"), 6704("0627", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { get => 0; set {} } }"), 6705("0628", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] ~Nested() {} }"), 6706("0630", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public Nested() {} }"), 6707("0631", NotUsedWarning, "class Nested { static int P { [Attr1(nameof(p1))] get { return 0; } } }"), 6708("0632", NotUsedWarning, "class Nested { static int P { [Attr1(nameof(p1))] set {} } }"), 6709("0633", NotUsedWarning, "class Nested { static event System.Action E { [Attr1(nameof(p1))] add {} remove {} } }"), 6710("0634", NotUsedWarning, "class Nested { static event System.Action E { add {} [Attr1(nameof(p1))] remove {} } }"), 6711("0635", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] class Nested2 {} }"), 6712("0636", NotUsedWarning, "class Nested { class Nested2([Attr1(nameof(p1))] int p2) { public int F = p2; } }"), 6715("0709", BadReference | NotUsedWarning | BadDefaultValue, "static void M(int x = p1) {}"), 6716("0717", BadReference | NotUsedWarning | BadDefaultValue, "void M(int x = p1) {}"), 6717("0724", BadReference | NotUsedWarning | BadDefaultValue, "int this[int y, int x = p1] { get { return x; } }"), 6718("0730", BadReference | NotUsedWarning | BadDefaultValue, "public C1(int y, int x = p1) : this(0) {}"), 6719("0731", BadReference | NotUsedWarning | BadDefaultValue, "class Nested(int y, int x = p1) { public int F = x + y; }"), 6722("0809", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { static void M(int x = p1) {} }"), 6723("0817", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { void M(int x = p1) {} }"), 6724("0824", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { int this[int y, int x = p1] { get { return x; } } }"), 6725("0830", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { public Nested(int x = p1) {} }"), 6726("0831", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { class Nested2(int y, int x = p1) { public int F = x + y; } }"), 6729("0909", NotUsedWarning, "static void M(string x = nameof(p1)) {}"), 6730("0917", NotUsedWarning, "void M(string x = nameof(p1)) {}"), 6731("0924", NotUsedWarning, "int this[int y, string x = nameof(p1)] { get { return y; } }"), 6732("0930", NotUsedWarning, "public C1(int y, string x = nameof(p1)) : this(0) {}"), 6733("0931", NotUsedWarning, "class Nested(int y, string x = nameof(p1)) { public int F = x.Length + y; }"), 6736("1009", NotUsedWarning, "class Nested { static void M(string x = nameof(p1)) {} }"), 6737("1017", NotUsedWarning, "class Nested { void M(string x = nameof(p1)) {} }"), 6738("1024", NotUsedWarning, "class Nested { int this[int y, string x = nameof(p1)] { get { return y; } } }"), 6739("1030", NotUsedWarning, "class Nested { public Nested(string x = nameof(p1)) {} }"), 6740("1031", NotUsedWarning, "class Nested { class Nested2(int y, string x = nameof(p1)) { public int F = x.Length + y; } }"), 6764("1506", BadReference | NotUsedWarning, "public static int P => p1;"), 6765("1508", BadReference | NotUsedWarning, "static C1() => p1 = 0;"), 6766("1509", BadReference | NotUsedWarning, "static void M() => p1 = 0;"), 6767("1511", BadReference | NotUsedWarning, "static int P { get => p1; }"), 6768("1512", BadReference | NotUsedWarning, "static int P { set => p1 = 0; }"), 6769("1513", BadReference | NotUsedWarning, "static int P { set {} get => p1; }"), 6770("1514", BadReference | NotUsedWarning, "static int P { get => 0; set => p1 = 0; }"), 6771("1515", BadReference | NotUsedWarning, "static event System.Action E { add => p1 = 0; remove {} }"), 6772("1516", BadReference | NotUsedWarning, "static event System.Action E { add {} remove => p1 = 0; }"), 6784("1602", BadReference | NotUsedWarning, "class Nested { public int P => p1; }"), 6785("1606", BadReference | NotUsedWarning, "class Nested { public static int P => p1; }"), 6786("1608", BadReference | NotUsedWarning, "class Nested { static Nested() => p1 = 0; }"), 6787("1609", BadReference | NotUsedWarning, "class Nested { static void M() => p1 = 0; }"), 6788("1611", BadReference | NotUsedWarning, "class Nested { static int P { get => p1; } }"), 6789("1612", BadReference | NotUsedWarning, "class Nested { static int P { set => p1 = 0; } }"), 6790("1613", BadReference | NotUsedWarning, "class Nested { static int P { set {} get => p1; } }"), 6791("1614", BadReference | NotUsedWarning, "class Nested { static int P { get => 0; set => p1 = 0; } }"), 6792("1617", BadReference | NotUsedWarning, "class Nested { void M() => p1 = 0; }"), 6793("1618", BadReference | NotUsedWarning, "class Nested { int P { get => p1; } }"), 6794("1619", BadReference | NotUsedWarning, "class Nested { int P { set => p1 = 0; } }"), 6795("1620", BadReference | NotUsedWarning, "class Nested { int P { set {} get => p1; } }"), 6796("1621", BadReference | NotUsedWarning, "class Nested { int P { get => 0; set => p1 = 0; } }"), 6797("1624", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => p1; } }"), 6798("1625", BadReference | NotUsedWarning, "class Nested { int this[int x] { set => p1 = 0; } }"), 6799("1626", BadReference | NotUsedWarning, "class Nested { int this[int x] { set {} get => p1; } }"), 6800("1627", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => 0; set => p1 = 0; } }"), 6801("1628", BadReference | NotUsedWarning, "class Nested { ~Nested() => p1 = 0; }"), 6802("1629", BadReference | NotUsedWarning, "class Nested { public Nested() : this(p1) {} Nested(int x) {} }"), 6803("1630", BadReference | NotUsedWarning, "class Nested { public Nested() => p1 = 0; }"), 6806("1708", NotUsedWarning | TwoBodies, "static C1() {} => p1 = 0;"), 6807("1709", NotUsedWarning | TwoBodies, "static void M() {} => p1 = 0;"), 6808("1711", NotUsedWarning | TwoBodies, "static int P { get { return 0; } => p1; }"), 6809("1712", NotUsedWarning | TwoBodies, "static int P { set {} => p1 = 0; }"), 6810("1713", NotUsedWarning | TwoBodies, "static int P { set {} get { return 0; } => p1; }"), 6811("1714", NotUsedWarning | TwoBodies, "static int P { get => 0; set {} => p1 = 0; }"), 6812("1715", NotUsedWarning | TwoBodies, "static event System.Action E { add {} => p1 = 0; remove {} }"), 6813("1716", NotUsedWarning | TwoBodies, "static event System.Action E { add {} remove {} => p1 = 0; }"), 6826("1808", NotUsedWarning | TwoBodies, "class Nested { static Nested() {} => p1 = 0; }"), 6827("1809", NotUsedWarning | TwoBodies, "class Nested { static void M() {} => p1 = 0; }"), 6828("1811", NotUsedWarning | TwoBodies, "class Nested { static int P { get { return 0; } => p1; } }"), 6829("1812", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} => p1 = 0; } }"), 6830("1813", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} get { return 0; } => p1; } }"), 6831("1814", NotUsedWarning | TwoBodies, "class Nested { static int P { get => 0; set {} => p1 = 0; } }"), 6832("1817", NotUsedWarning | TwoBodies, "class Nested { void M() {} => p1 = 0; }"), 6833("1818", NotUsedWarning | TwoBodies, "class Nested { int P { get { return 0; } => p1; } }"), 6834("1819", NotUsedWarning | TwoBodies, "class Nested { int P { set {} => p1 = 0; } }"), 6835("1820", NotUsedWarning | TwoBodies, "class Nested { int P { set {} get { return 0; } => p1; } }"), 6836("1821", NotUsedWarning | TwoBodies, "class Nested { int P { get => 0; set {} => p1 = 0; } }"), 6837("1824", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get { return 0; } => p1; } }"), 6838("1825", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} => p1 = 0; } }"), 6839("1826", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} get { return 0; } => p1; } }"), 6840("1827", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get => 0; set {} => p1 = 0; } }"), 6841("1828", NotUsedWarning | TwoBodies, "class Nested { ~Nested() {} => p1 = 0; }"), 6842("1830", NotUsedWarning | TwoBodies, "class Nested { public Nested() {} => p1 = 0; }"), 6845("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 6846("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 6847("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 6848("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 6849("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 6850("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 6851("1908", NotUsedWarning | AttributesNotAllowed, "static C1() { [Attr1(p1)] return; }"), 6852("1909", NotUsedWarning | AttributesNotAllowed, "static void M() { [Attr1(p1)] return; }"), 6853("1911", NotUsedWarning | AttributesNotAllowed, "static int P { get { [Attr1(p1)] return 0; } }"), 6854("1912", NotUsedWarning | AttributesNotAllowed, "static int P { set { [Attr1(p1)] return; } }"), 6855("1913", NotUsedWarning | AttributesNotAllowed, "static int P { set {} get { [Attr1(p1)] return 0; } }"), 6856("1914", NotUsedWarning | AttributesNotAllowed, "static int P { get => 0; set { [Attr1(p1)] return; } }"), 6857("1915", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 6858("1916", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 6859("1917", NotUsedWarning | AttributesNotAllowed, "void M() { [Attr1(p1)] return; }"), 6860("1918", NotUsedWarning | AttributesNotAllowed, "int P { get { [Attr1(p1)] return 0; } }"), 6861("1919", NotUsedWarning | AttributesNotAllowed, "int P { set { [Attr1(p1)] return; } }"), 6862("1920", NotUsedWarning | AttributesNotAllowed, "int P { set {} get { [Attr1(p1)] return 0; } }"), 6863("1921", NotUsedWarning | AttributesNotAllowed, "int P { get => 0; set { [Attr1(p1)] return; } }"), 6864("1922", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 6865("1923", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 6866("1924", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get { [Attr1(p1)] return 0; } }"), 6867("1925", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set { [Attr1(p1)] return; } }"), 6868("1926", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set {} get { [Attr1(p1)] return 0; } }"), 6869("1927", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get => 0; set { [Attr1(p1)] return; } }"), 6870("1928", NotUsedWarning | AttributesNotAllowed, "~C1() { [Attr1(p1)] return; }"), 6871("1929", NotUsedWarning | AttributesNotAllowed, "public C1() : this(() => { [Attr1(p1)] return; }) {} C1(System.Action x) : this(0) {}"), 6872("1930", NotUsedWarning | AttributesNotAllowed, "public C1() : this(0) { [Attr1(p1)] return; }"), 6873("1935", NotUsedWarning | AttributesNotAllowed, "class Nested() : NestedBase(() => { [Attr1(p1)] return; }) {} class NestedBase(System.Action x) { object F = x; } "), 6875("2001", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 6876("2002", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 6877("2003", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 6878("2004", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 6879("2006", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 6880("2007", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 6881("2008", BadReference | NotUsedWarning | BadAttributeValue, "static C1() { [Attr1(p1)] void local(){} local(); }"), 6882("2009", BadReference | NotUsedWarning | BadAttributeValue, "static void M() { [Attr1(p1)] void local(){} local(); }"), 6883("2011", BadReference | NotUsedWarning | BadAttributeValue, "static int P { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6884("2012", BadReference | NotUsedWarning | BadAttributeValue, "static int P { set { [Attr1(p1)] void local(){} local(); } }"), 6885("2013", BadReference | NotUsedWarning | BadAttributeValue, "static int P { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6886("2014", BadReference | NotUsedWarning | BadAttributeValue, "static int P { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 6887("2015", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add { [Attr1(p1)] void local(){} local(); } remove {} }"), 6888("2016", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add {} remove { [Attr1(p1)] void local(){} local(); } }"), 6889("2017", BadReference | NotUsedWarning | BadAttributeValue, "void M() { [Attr1(p1)] void local(){} local(); }"), 6890("2018", BadReference | NotUsedWarning | BadAttributeValue, "int P { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6891("2019", BadReference | NotUsedWarning | BadAttributeValue, "int P { set { [Attr1(p1)] void local(){} local(); } }"), 6892("2020", BadReference | NotUsedWarning | BadAttributeValue, "int P { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6893("2021", BadReference | NotUsedWarning | BadAttributeValue, "int P { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 6894("2022", BadReference | NotUsedWarning | BadAttributeValue, "event System.Action E { add { [Attr1(p1)] void local(){} local(); } remove {} }"), 6895("2023", BadReference | NotUsedWarning | BadAttributeValue, "event System.Action E { add {} remove { [Attr1(p1)] void local(){} local(); } }"), 6896("2024", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6897("2025", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { set { [Attr1(p1)] void local(){} local(); } }"), 6898("2026", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 6899("2027", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 6900("2028", BadReference | NotUsedWarning | BadAttributeValue, "~C1() { [Attr1(p1)] void local(){} local(); }"), 6901("2029", BadReference | NotUsedWarning | BadAttributeValue, "public C1() : this(() => { [Attr1(p1)] void local(){} local(); }) {} C1(System.Action x) : this(0) {}"), 6902("2030", BadReference | NotUsedWarning | BadAttributeValue, "public C1() : this(0) { [Attr1(p1)] void local(){} local(); }"), 6903("2035", BadReference | NotUsedWarning | BadAttributeValue, "class Nested() : NestedBase(() => { [Attr1(p1)] void local(){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 6909("2104", NotUsedWarning | Shadows, "public static System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6910("2106", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6911("2107", NotUsedWarning | Shadows, "public static event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6912("2108", NotUsedWarning, "static C1() { [Attr1(nameof(p1))] void local(){} local(); }"), 6913("2109", NotUsedWarning, "static void M() { [Attr1(nameof(p1))] void local(){} local(); }"), 6914("2111", NotUsedWarning, "static int P { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6915("2112", NotUsedWarning, "static int P { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6916("2113", NotUsedWarning, "static int P { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6917("2114", NotUsedWarning, "static int P { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6918("2115", NotUsedWarning, "static event System.Action E { add { [Attr1(nameof(p1))] void local(){} local(); } remove {} }"), 6919("2116", NotUsedWarning, "static event System.Action E { add {} remove { [Attr1(nameof(p1))] void local(){} local(); } }"), 6920("2117", NotUsedWarning, "void M() { [Attr1(nameof(p1))] void local(){} local(); }"), 6921("2118", NotUsedWarning, "int P { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6922("2119", NotUsedWarning, "int P { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6923("2120", NotUsedWarning, "int P { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6924("2121", NotUsedWarning, "int P { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6925("2122", NotUsedWarning, "event System.Action E { add { [Attr1(nameof(p1))] void local(){} local(); } remove {} }"), 6926("2123", NotUsedWarning, "event System.Action E { add {} remove { [Attr1(nameof(p1))] void local(){} local(); } }"), 6927("2124", NotUsedWarning, "int this[int x] { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6928("2125", NotUsedWarning, "int this[int x] { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6929("2126", NotUsedWarning, "int this[int x] { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 6930("2127", NotUsedWarning, "int this[int x] { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 6931("2128", NotUsedWarning, "~C1() { [Attr1(nameof(p1))] void local(){} local(); }"), 6932("2129", NotUsedWarning, "public C1() : this(() => { [Attr1(nameof(p1))] void local(){} local(); }) {} C1(System.Action x) : this(0) {}"), 6933("2130", NotUsedWarning, "public C1() : this(0) { [Attr1(nameof(p1))] void local(){} local(); }"), 6934("2135", NotUsedWarning, "class Nested() : NestedBase(() => { [Attr1(nameof(p1))] void local(){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 6940("2204", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action F = () => { void local(int x = p1){} local(); };"), 6941("2206", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 6942("2207", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static event System.Action E = () => { void local(int x = p1){} local(); };"), 6943("2208", BadReference | NotUsedWarning | BadDefaultValue, "static C1() { void local(int x = p1){} local(); }"), 6944("2209", BadReference | NotUsedWarning | BadDefaultValue, "static void M() { void local(int x = p1){} local(); }"), 6945("2211", BadReference | NotUsedWarning | BadDefaultValue, "static int P { get { void local(int x = p1){} local(); return 0; } }"), 6946("2212", BadReference | NotUsedWarning | BadDefaultValue, "static int P { set { void local(int x = p1){} local(); } }"), 6947("2213", BadReference | NotUsedWarning | BadDefaultValue, "static int P { set {} get { void local(int x = p1){} local(); return 0; } }"), 6948("2214", BadReference | NotUsedWarning | BadDefaultValue, "static int P { get => 0; set { void local(int x = p1){} local(); } }"), 6949("2215", BadReference | NotUsedWarning | BadDefaultValue, "static event System.Action E { add { void local(int x = p1){} local(); } remove {} }"), 6950("2216", BadReference | NotUsedWarning | BadDefaultValue, "static event System.Action E { add {} remove { void local(int x = p1){} local(); } }"), 6951("2217", BadReference | NotUsedWarning | BadDefaultValue, "void M() { void local(int x = p1){} local(); }"), 6952("2218", BadReference | NotUsedWarning | BadDefaultValue, "int P { get { void local(int x = p1){} local(); return 0; } }"), 6953("2219", BadReference | NotUsedWarning | BadDefaultValue, "int P { set { void local(int x = p1){} local(); } }"), 6954("2220", BadReference | NotUsedWarning | BadDefaultValue, "int P { set {} get { void local(int x = p1){} local(); return 0; } }"), 6955("2221", BadReference | NotUsedWarning | BadDefaultValue, "int P { get => 0; set { void local(int x = p1){} local(); } }"), 6956("2222", BadReference | NotUsedWarning | BadDefaultValue, "event System.Action E { add { void local(int x = p1){} local(); } remove {} }"), 6957("2223", BadReference | NotUsedWarning | BadDefaultValue, "event System.Action E { add {} remove { void local(int x = p1){} local(); } }"), 6958("2224", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { get { void local(int x = p1){} local(); return 0; } }"), 6959("2225", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { set { void local(int x = p1){} local(); } }"), 6960("2226", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { set {} get { void local(int x = p1){} local(); return 0; } }"), 6961("2227", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { get => 0; set { void local(int x = p1){} local(); } }"), 6962("2228", BadReference | NotUsedWarning | BadDefaultValue, "~C1() { void local(int x = p1){} local(); }"), 6963("2229", BadReference | NotUsedWarning | BadDefaultValue, "public C1() : this(() => { void local(int x = p1){} local(); }) {} C1(System.Action x) : this(0) {}"), 6964("2230", BadReference | NotUsedWarning | BadDefaultValue, "public C1() : this(0) { void local(int x = p1){} local(); }"), 6965("2235", BadReference | NotUsedWarning | BadDefaultValue, "class Nested() : NestedBase(() => { void local(int x = p1){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 6971("2304", NotUsedWarning | Shadows, "public static System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 6972("2306", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 6973("2307", NotUsedWarning | Shadows, "public static event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 6974("2308", NotUsedWarning, "static C1() { void local(string x = nameof(p1)){} local(); }"), 6975("2309", NotUsedWarning, "static void M() { void local(string x = nameof(p1)){} local(); }"), 6976("2311", NotUsedWarning, "static int P { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6977("2312", NotUsedWarning, "static int P { set { void local(string x = nameof(p1)){} local(); } }"), 6978("2313", NotUsedWarning, "static int P { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6979("2314", NotUsedWarning, "static int P { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 6980("2315", NotUsedWarning, "static event System.Action E { add { void local(string x = nameof(p1)){} local(); } remove {} }"), 6981("2316", NotUsedWarning, "static event System.Action E { add {} remove { void local(string x = nameof(p1)){} local(); } }"), 6982("2317", NotUsedWarning, "void M() { void local(string x = nameof(p1)){} local(); }"), 6983("2318", NotUsedWarning, "int P { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6984("2319", NotUsedWarning, "int P { set { void local(string x = nameof(p1)){} local(); } }"), 6985("2320", NotUsedWarning, "int P { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6986("2321", NotUsedWarning, "int P { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 6987("2322", NotUsedWarning, "event System.Action E { add { void local(string x = nameof(p1)){} local(); } remove {} }"), 6988("2323", NotUsedWarning, "event System.Action E { add {} remove { void local(string x = nameof(p1)){} local(); } }"), 6989("2324", NotUsedWarning, "int this[int x] { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6990("2325", NotUsedWarning, "int this[int x] { set { void local(string x = nameof(p1)){} local(); } }"), 6991("2326", NotUsedWarning, "int this[int x] { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 6992("2327", NotUsedWarning, "int this[int x] { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 6993("2328", NotUsedWarning, "~C1() { void local(string x = nameof(p1)){} local(); }"), 6994("2329", NotUsedWarning, "public C1() : this(() => { void local(string x = nameof(p1)){} local(); }) {} C1(System.Action x) : this(0) {}"), 6995("2330", NotUsedWarning, "public C1() : this(0) { void local(string x = nameof(p1)){} local(); }"), 6996("2335", NotUsedWarning, "class Nested() : NestedBase(() => { void local(string x = nameof(p1)){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 7002("2404", NotUsedWarning | Shadows, "public static int F = nameof(p1).Length;"), 7003("2405", NotUsedWarning | Shadows, "public const string F = nameof(p1);"), 7004("2406", NotUsedWarning | Shadows, "public static int P {get;} = nameof(p1).Length;"), 7005("2407", NotUsedWarning | Shadows, "public static event System.Action E = () => nameof(p1).Length.ToString();"), 7006("2408", NotUsedWarning, "static C1() { _ = nameof(p1); }"), 7007("2409", NotUsedWarning, "static void M() { _ = nameof(p1); }"), 7008("2411", NotUsedWarning, "static int P { get { return nameof(p1).Length; } }"), 7009("2412", NotUsedWarning, "static int P { set { _ = nameof(p1); } }"), 7010("2413", NotUsedWarning, "static int P { set {} get { return nameof(p1).Length; } }"), 7011("2414", NotUsedWarning, "static int P { get => 0; set { _ = nameof(p1); } }"), 7012("2415", NotUsedWarning, "static event System.Action E { add { _ = nameof(p1); } remove {} }"), 7013("2416", NotUsedWarning, "static event System.Action E { add {} remove { _ = nameof(p1); } }"), 7014("2417", NotUsedWarning, "void M() { _ = nameof(p1); }"), 7015("2418", NotUsedWarning, "int P { get { return nameof(p1).Length; } }"), 7016("2419", NotUsedWarning, "int P { set { _ = nameof(p1); } }"), 7017("2420", NotUsedWarning, "int P { set {} get { return nameof(p1).Length; } }"), 7018("2421", NotUsedWarning, "int P { get => 0; set { _ = nameof(p1); } }"), 7019("2422", NotUsedWarning, "event System.Action E { add { _ = nameof(p1); } remove {} }"), 7020("2423", NotUsedWarning, "event System.Action E { add {} remove { _ = nameof(p1); } }"), 7021("2424", NotUsedWarning, "int this[int x] { get { return nameof(p1).Length; } }"), 7022("2425", NotUsedWarning, "int this[int x] { set { _ = nameof(p1); } }"), 7023("2426", NotUsedWarning, "int this[int x] { set {} get { return nameof(p1).Length; } }"), 7024("2427", NotUsedWarning, "int this[int x] { get => 0; set { _ = nameof(p1); } }"), 7025("2428", NotUsedWarning, "~C1() { _ = nameof(p1); }"), 7026("2429", NotUsedWarning, "public C1() : this(nameof(p1).Length) {}"), 7029("2501", NotUsedWarning, "class Nested { public int F = nameof(p1).Length; }"), 7030("2502", NotUsedWarning, "class Nested { public int P {get;} = nameof(p1).Length; }"), 7031("2503", NotUsedWarning, "class Nested { public event System.Action E = () => nameof(p1).Length.ToString(); }"), 7032("2504", NotUsedWarning, "class Nested { public static int F = nameof(p1).Length; }"), 7033("2506", NotUsedWarning, "class Nested { public static int P {get;} = nameof(p1).Length; }"), 7034("2507", NotUsedWarning, "class Nested { public static event System.Action E = () => nameof(p1).Length.ToString(); }"), 7035("2508", NotUsedWarning, "class Nested { static Nested() { _ = nameof(p1); } }"), 7036("2509", NotUsedWarning, "class Nested { static void M() { _ = nameof(p1); } }"), 7037("2511", NotUsedWarning, "class Nested { static int P { get { return nameof(p1).Length; } } }"), 7038("2512", NotUsedWarning, "class Nested { static int P { set { _ = nameof(p1); } } }"), 7039("2513", NotUsedWarning, "class Nested { static int P { set {} get { return nameof(p1).Length; } } }"), 7040("2514", NotUsedWarning, "class Nested { static int P { get => 0; set { _ = nameof(p1); } } }"), 7041("2515", NotUsedWarning, "class Nested { static event System.Action E { add { _ = nameof(p1); } remove {} } }"), 7042("2516", NotUsedWarning, "class Nested { static event System.Action E { add {} remove { _ = nameof(p1); } } }"), 7043("2517", NotUsedWarning, "class Nested { void M() { _ = nameof(p1); } }"), 7044("2518", NotUsedWarning, "class Nested { int P { get { return nameof(p1).Length; } } }"), 7045("2519", NotUsedWarning, "class Nested { int P { set { _ = nameof(p1); } } }"), 7046("2520", NotUsedWarning, "class Nested { int P { set {} get { return nameof(p1).Length; } } }"), 7047("2521", NotUsedWarning, "class Nested { int P { get => 0; set { _ = nameof(p1); } } }"), 7048("2522", NotUsedWarning, "class Nested { event System.Action E { add { _ = nameof(p1); } remove {} } }"), 7049("2523", NotUsedWarning, "class Nested { event System.Action E { add {} remove { _ = nameof(p1); } } }"), 7050("2524", NotUsedWarning, "class Nested { int this[int x] { get { return nameof(p1).Length; } } }"), 7051("2525", NotUsedWarning, "class Nested { int this[int x] { set { _ = nameof(p1); } } }"), 7052("2526", NotUsedWarning, "class Nested { int this[int x] { set {} get { return nameof(p1).Length; } } }"), 7053("2527", NotUsedWarning, "class Nested { int this[int x] { get => 0; set { _ = nameof(p1); } } }"), 7054("2528", NotUsedWarning, "class Nested { ~Nested() { _ = nameof(p1); } }"), 7055("2529", NotUsedWarning, "class Nested { public Nested() : this(nameof(p1).Length) {} Nested(int x) {} }"), 7056("2530", NotUsedWarning, "class Nested { public Nested() { _ = nameof(p1); } }"), 7172Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning); 7240if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0) 7343if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0)) 7413("0001", BadReference | BadAttributeValue | NotUsedWarning, "[Attr1(p1)]"), 7414("0002", NotUsedWarning, "[Attr1(nameof(p1))]"), 7517("0001", NotInScope | NotUsedWarning, "[Attr1(p1)]"), 7518("0002", NotUsedWarning | Shadows, "[Attr1(nameof(p1))]"), 7596("0001", NotInScope | NotUsedWarning, "p1"), 7597("0002", NotInScope | NotUsedWarning, "nameof(p1)"),