446 references to NotUsedWarning
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (446)
Semantics\PrimaryConstructorTests.cs (446)
7132("0004", BadReference | NotUsedWarning | Shadows, "public static int F = p1;"), 7133("0005", BadReference | NotUsedWarning | Shadows | BadConstant, "public const int F = p1;"), 7134("0006", BadReference | NotUsedWarning | Shadows, "public static int P {get;} = p1;"), 7135("0007", BadReference | NotUsedWarning | Shadows, "public static event System.Action E = () => p1.ToString();"), 7136("0008", BadReference | NotUsedWarning, "static C1() { p1 = 0; }"), 7137("0009", BadReference | NotUsedWarning, "static void M() { p1 = 0; }"), 7138("0011", BadReference | NotUsedWarning, "static int P { get { return p1; } }"), 7139("0012", BadReference | NotUsedWarning, "static int P { set { p1 = 0; } }"), 7140("0013", BadReference | NotUsedWarning, "static int P { set {} get { return p1; } }"), 7141("0014", BadReference | NotUsedWarning, "static int P { get => 0; set { p1 = 0; } }"), 7142("0015", BadReference | NotUsedWarning, "static event System.Action E { add { p1 = 0; } remove {} }"), 7143("0016", BadReference | NotUsedWarning, "static event System.Action E { add {} remove { p1 = 0; } }"), 7159("0101", BadReference | NotUsedWarning, "class Nested { public int F = p1; }"), 7160("0102", BadReference | NotUsedWarning, "class Nested { public int P {get;} = p1; }"), 7161("0103", BadReference | NotUsedWarning, "class Nested { public event System.Action E = () => p1.ToString(); }"), 7162("0104", BadReference | NotUsedWarning, "class Nested { public static int F = p1; }"), 7163("0106", BadReference | NotUsedWarning, "class Nested { public static int P {get;} = p1; }"), 7164("0107", BadReference | NotUsedWarning, "class Nested { public static event System.Action E = () => p1.ToString(); }"), 7165("0108", BadReference | NotUsedWarning, "class Nested { static Nested() { p1 = 0; } }"), 7166("0109", BadReference | NotUsedWarning, "class Nested { static void M() { p1 = 0; } }"), 7167("0111", BadReference | NotUsedWarning, "class Nested { static int P { get { return p1; } } }"), 7168("0112", BadReference | NotUsedWarning, "class Nested { static int P { set { p1 = 0; } } }"), 7169("0113", BadReference | NotUsedWarning, "class Nested { static int P { set {} get { return p1; } } }"), 7170("0114", BadReference | NotUsedWarning, "class Nested { static int P { get => 0; set { p1 = 0; } } }"), 7171("0115", BadReference | NotUsedWarning, "class Nested { static event System.Action E { add { p1 = 0; } remove {} } }"), 7172("0116", BadReference | NotUsedWarning, "class Nested { static event System.Action E { add {} remove { p1 = 0; } } }"), 7173("0117", BadReference | NotUsedWarning, "class Nested { void M() { p1 = 0; } }"), 7174("0118", BadReference | NotUsedWarning, "class Nested { int P { get { return p1; } } }"), 7175("0119", BadReference | NotUsedWarning, "class Nested { int P { set { p1 = 0; } } }"), 7176("0120", BadReference | NotUsedWarning, "class Nested { int P { set {} get { return p1; } } }"), 7177("0121", BadReference | NotUsedWarning, "class Nested { int P { get => 0; set { p1 = 0; } } }"), 7178("0122", BadReference | NotUsedWarning, "class Nested { event System.Action E { add { p1 = 0; } remove {} } }"), 7179("0123", BadReference | NotUsedWarning, "class Nested { event System.Action E { add {} remove { p1 = 0; } } }"), 7180("0124", BadReference | NotUsedWarning, "class Nested { int this[int x] { get { return p1; } } }"), 7181("0125", BadReference | NotUsedWarning, "class Nested { int this[int x] { set { p1 = 0; } } }"), 7182("0126", BadReference | NotUsedWarning, "class Nested { int this[int x] { set {} get { return p1; } } }"), 7183("0127", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => 0; set { p1 = 0; } } }"), 7184("0128", BadReference | NotUsedWarning, "class Nested { ~Nested() { p1 = 0; } }"), 7185("0129", BadReference | NotUsedWarning, "class Nested { public Nested() : this(p1) {} Nested(int x) {} }"), 7186("0130", BadReference | NotUsedWarning, "class Nested { public Nested() { p1 = 0; } }"), 7189("0301", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public int F = 0;"), 7190("0302", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public int P {get;} = 0;"), 7191("0303", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public event System.Action E = () => 0.ToString();"), 7192("0304", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static int F = 0;"), 7193("0305", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public const int F = 0;"), 7194("0306", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static int P {get;} = 0;"), 7195("0307", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public static event System.Action E = () => 0.ToString();"), 7196("0308", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static C1() {}"), 7197("0309", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static void M() {}"), 7198("0311", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { get { return 0; } }"), 7199("0312", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { set {} }"), 7200("0313", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { set {} get { return 0; } }"), 7201("0314", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static int P { get => 0; set {} }"), 7202("0315", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static event System.Action E { add {} remove {} }"), 7203("0316", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] static event System.Action E { add {} remove {} }"), 7204("0317", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] void M() {}"), 7205("0318", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { get { return 0; } }"), 7206("0319", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { set {} }"), 7207("0320", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { set {} get { return 0; } }"), 7208("0321", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int P { get => 0; set {} }"), 7209("0322", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] event System.Action E { add {} remove {} }"), 7210("0323", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] event System.Action E { add {} remove {} }"), 7211("0324", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { get { return 0; } }"), 7212("0325", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { set {} }"), 7213("0326", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { set {} get { return 0; } }"), 7214("0327", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] int this[int x] { get => 0; set {} }"), 7215("0328", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] ~C1() {}"), 7216("0329", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] public C1() : this(0) {}"), 7217("0330", BadReference | NotUsedWarning | BadAttributeValue, "static int P { [Attr1(p1)] get { return 0; } }"), 7218("0331", BadReference | NotUsedWarning | BadAttributeValue, "static int P { [Attr1(p1)] set {} }"), 7219("0332", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { [Attr1(p1)] add {} remove {} }"), 7220("0333", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add {} [Attr1(p1)] remove {} }"), 7221("0334", BadReference | NotUsedWarning | BadAttributeValue, "[Attr1(p1)] class Nested {}"), 7222("0335", BadReference | NotUsedWarning | BadAttributeValue, "class Nested([Attr1(p1)] int p2) { public int F = p2; }"), 7225("0401", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public int F = 0; }"), 7226("0402", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public int P {get;} = 0; }"), 7227("0403", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public event System.Action E = () => 0.ToString(); }"), 7228("0404", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static int F = 0; }"), 7229("0406", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static int P {get;} = 0; }"), 7230("0407", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public static event System.Action E = () => 0.ToString(); }"), 7231("0408", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static Nested() {} }"), 7232("0409", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static void M() {} }"), 7233("0411", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { get { return 0; } } }"), 7234("0412", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { set {} } }"), 7235("0413", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { set {} get { return 0; } } }"), 7236("0414", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static int P { get => 0; set {} } }"), 7237("0415", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static event System.Action E { add {} remove {} } }"), 7238("0416", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] static event System.Action E { add {} remove {} } }"), 7239("0417", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] void M() {} }"), 7240("0418", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { get { return 0; } } }"), 7241("0419", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { set {} } }"), 7242("0420", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { set {} get { return 0; } } }"), 7243("0421", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int P { get => 0; set {} } }"), 7244("0422", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] event System.Action E { add {} remove {} } }"), 7245("0423", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] event System.Action E { add {} remove {} } }"), 7246("0424", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { get { return 0; } } }"), 7247("0425", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { set {} } }"), 7248("0426", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { set {} get { return 0; } } }"), 7249("0427", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] int this[int x] { get => 0; set {} } }"), 7250("0428", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] ~Nested() {} }"), 7251("0430", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] public Nested() {} }"), 7252("0431", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static int P { [Attr1(p1)] get { return 0; } } }"), 7253("0432", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static int P { [Attr1(p1)] set {} } }"), 7254("0433", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static event System.Action E { [Attr1(p1)] add {} remove {} } }"), 7255("0434", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { static event System.Action E { add {} [Attr1(p1)] remove {} } }"), 7256("0435", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { [Attr1(p1)] class Nested2 {} }"), 7257("0436", BadReference | NotUsedWarning | BadAttributeValue, "class Nested { class Nested2([Attr1(p1)] int p2) { public int F = p2; } }"), 7260("0501", NotUsedWarning, "[Attr1(nameof(p1))] public int F = 0;"), 7261("0502", NotUsedWarning, "[Attr1(nameof(p1))] public int P {get;} = 0;"), 7262("0503", NotUsedWarning, "[Attr1(nameof(p1))] public event System.Action E = () => 0.ToString();"), 7263("0504", NotUsedWarning, "[Attr1(nameof(p1))] public static int F = 0;"), 7264("0505", NotUsedWarning, "[Attr1(nameof(p1))] public const int F = 0;"), 7265("0506", NotUsedWarning, "[Attr1(nameof(p1))] public static int P {get;} = 0;"), 7266("0507", NotUsedWarning, "[Attr1(nameof(p1))] public static event System.Action E = () => 0.ToString();"), 7267("0508", NotUsedWarning, "[Attr1(nameof(p1))] static C1() {}"), 7268("0509", NotUsedWarning, "[Attr1(nameof(p1))] static void M() {}"), 7269("0511", NotUsedWarning, "[Attr1(nameof(p1))] static int P { get { return 0; } }"), 7270("0512", NotUsedWarning, "[Attr1(nameof(p1))] static int P { set {} }"), 7271("0513", NotUsedWarning, "[Attr1(nameof(p1))] static int P { set {} get { return 0; } }"), 7272("0514", NotUsedWarning, "[Attr1(nameof(p1))] static int P { get => 0; set {} }"), 7273("0515", NotUsedWarning, "[Attr1(nameof(p1))] static event System.Action E { add {} remove {} }"), 7274("0516", NotUsedWarning, "[Attr1(nameof(p1))] static event System.Action E { add {} remove {} }"), 7275("0517", NotUsedWarning, "[Attr1(nameof(p1))] void M() {}"), 7276("0518", NotUsedWarning, "[Attr1(nameof(p1))] int P { get { return 0; } }"), 7277("0519", NotUsedWarning, "[Attr1(nameof(p1))] int P { set {} }"), 7278("0520", NotUsedWarning, "[Attr1(nameof(p1))] int P { set {} get { return 0; } }"), 7279("0521", NotUsedWarning, "[Attr1(nameof(p1))] int P { get => 0; set {} }"), 7280("0522", NotUsedWarning, "[Attr1(nameof(p1))] event System.Action E { add {} remove {} }"), 7281("0523", NotUsedWarning, "[Attr1(nameof(p1))] event System.Action E { add {} remove {} }"), 7282("0524", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { get { return 0; } }"), 7283("0525", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { set {} }"), 7284("0526", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { set {} get { return 0; } }"), 7285("0527", NotUsedWarning, "[Attr1(nameof(p1))] int this[int x] { get => 0; set {} }"), 7286("0528", NotUsedWarning, "[Attr1(nameof(p1))] ~C1() {}"), 7287("0529", NotUsedWarning, "[Attr1(nameof(p1))] public C1() : this(0) {}"), 7288("0530", NotUsedWarning, "static int P { [Attr1(nameof(p1))] get { return 0; } }"), 7289("0531", NotUsedWarning, "static int P { [Attr1(nameof(p1))] set {} }"), 7290("0532", NotUsedWarning, "static event System.Action E { [Attr1(nameof(p1))] add {} remove {} }"), 7291("0533", NotUsedWarning, "static event System.Action E { add {} [Attr1(nameof(p1))] remove {} }"), 7292("0534", NotUsedWarning, "[Attr1(nameof(p1))] class Nested {}"), 7293("0535", NotUsedWarning, "class Nested([Attr1(nameof(p1))] int p2) { public int F = p2; }"), 7296("0601", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public int F = 0; }"), 7297("0602", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public int P {get;} = 0; }"), 7298("0603", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public event System.Action E = () => 0.ToString(); }"), 7299("0604", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static int F = 0; }"), 7300("0606", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static int P {get;} = 0; }"), 7301("0607", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public static event System.Action E = () => 0.ToString(); }"), 7302("0608", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static Nested() {} }"), 7303("0609", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static void M() {} }"), 7304("0611", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { get { return 0; } } }"), 7305("0612", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { set {} } }"), 7306("0613", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { set {} get { return 0; } } }"), 7307("0614", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static int P { get => 0; set {} } }"), 7308("0615", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static event System.Action E { add {} remove {} } }"), 7309("0616", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] static event System.Action E { add {} remove {} } }"), 7310("0617", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] void M() {} }"), 7311("0618", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { get { return 0; } } }"), 7312("0619", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { set {} } }"), 7313("0620", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { set {} get { return 0; } } }"), 7314("0621", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int P { get => 0; set {} } }"), 7315("0622", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] event System.Action E { add {} remove {} } }"), 7316("0623", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] event System.Action E { add {} remove {} } }"), 7317("0624", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { get { return 0; } } }"), 7318("0625", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { set {} } }"), 7319("0626", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { set {} get { return 0; } } }"), 7320("0627", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] int this[int x] { get => 0; set {} } }"), 7321("0628", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] ~Nested() {} }"), 7322("0630", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] public Nested() {} }"), 7323("0631", NotUsedWarning, "class Nested { static int P { [Attr1(nameof(p1))] get { return 0; } } }"), 7324("0632", NotUsedWarning, "class Nested { static int P { [Attr1(nameof(p1))] set {} } }"), 7325("0633", NotUsedWarning, "class Nested { static event System.Action E { [Attr1(nameof(p1))] add {} remove {} } }"), 7326("0634", NotUsedWarning, "class Nested { static event System.Action E { add {} [Attr1(nameof(p1))] remove {} } }"), 7327("0635", NotUsedWarning, "class Nested { [Attr1(nameof(p1))] class Nested2 {} }"), 7328("0636", NotUsedWarning, "class Nested { class Nested2([Attr1(nameof(p1))] int p2) { public int F = p2; } }"), 7331("0709", BadReference | NotUsedWarning | BadDefaultValue, "static void M(int x = p1) {}"), 7332("0717", BadReference | NotUsedWarning | BadDefaultValue, "void M(int x = p1) {}"), 7333("0724", BadReference | NotUsedWarning | BadDefaultValue, "int this[int y, int x = p1] { get { return x; } }"), 7334("0730", BadReference | NotUsedWarning | BadDefaultValue, "public C1(int y, int x = p1) : this(0) {}"), 7335("0731", BadReference | NotUsedWarning | BadDefaultValue, "class Nested(int y, int x = p1) { public int F = x + y; }"), 7338("0809", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { static void M(int x = p1) {} }"), 7339("0817", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { void M(int x = p1) {} }"), 7340("0824", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { int this[int y, int x = p1] { get { return x; } } }"), 7341("0830", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { public Nested(int x = p1) {} }"), 7342("0831", BadReference | NotUsedWarning | BadDefaultValue, "class Nested { class Nested2(int y, int x = p1) { public int F = x + y; } }"), 7345("0909", NotUsedWarning, "static void M(string x = nameof(p1)) {}"), 7346("0917", NotUsedWarning, "void M(string x = nameof(p1)) {}"), 7347("0924", NotUsedWarning, "int this[int y, string x = nameof(p1)] { get { return y; } }"), 7348("0930", NotUsedWarning, "public C1(int y, string x = nameof(p1)) : this(0) {}"), 7349("0931", NotUsedWarning, "class Nested(int y, string x = nameof(p1)) { public int F = x.Length + y; }"), 7352("1009", NotUsedWarning, "class Nested { static void M(string x = nameof(p1)) {} }"), 7353("1017", NotUsedWarning, "class Nested { void M(string x = nameof(p1)) {} }"), 7354("1024", NotUsedWarning, "class Nested { int this[int y, string x = nameof(p1)] { get { return y; } } }"), 7355("1030", NotUsedWarning, "class Nested { public Nested(string x = nameof(p1)) {} }"), 7356("1031", NotUsedWarning, "class Nested { class Nested2(int y, string x = nameof(p1)) { public int F = x.Length + y; } }"), 7380("1506", BadReference | NotUsedWarning, "public static int P => p1;"), 7381("1508", BadReference | NotUsedWarning, "static C1() => p1 = 0;"), 7382("1509", BadReference | NotUsedWarning, "static void M() => p1 = 0;"), 7383("1511", BadReference | NotUsedWarning, "static int P { get => p1; }"), 7384("1512", BadReference | NotUsedWarning, "static int P { set => p1 = 0; }"), 7385("1513", BadReference | NotUsedWarning, "static int P { set {} get => p1; }"), 7386("1514", BadReference | NotUsedWarning, "static int P { get => 0; set => p1 = 0; }"), 7387("1515", BadReference | NotUsedWarning, "static event System.Action E { add => p1 = 0; remove {} }"), 7388("1516", BadReference | NotUsedWarning, "static event System.Action E { add {} remove => p1 = 0; }"), 7400("1602", BadReference | NotUsedWarning, "class Nested { public int P => p1; }"), 7401("1606", BadReference | NotUsedWarning, "class Nested { public static int P => p1; }"), 7402("1608", BadReference | NotUsedWarning, "class Nested { static Nested() => p1 = 0; }"), 7403("1609", BadReference | NotUsedWarning, "class Nested { static void M() => p1 = 0; }"), 7404("1611", BadReference | NotUsedWarning, "class Nested { static int P { get => p1; } }"), 7405("1612", BadReference | NotUsedWarning, "class Nested { static int P { set => p1 = 0; } }"), 7406("1613", BadReference | NotUsedWarning, "class Nested { static int P { set {} get => p1; } }"), 7407("1614", BadReference | NotUsedWarning, "class Nested { static int P { get => 0; set => p1 = 0; } }"), 7408("1617", BadReference | NotUsedWarning, "class Nested { void M() => p1 = 0; }"), 7409("1618", BadReference | NotUsedWarning, "class Nested { int P { get => p1; } }"), 7410("1619", BadReference | NotUsedWarning, "class Nested { int P { set => p1 = 0; } }"), 7411("1620", BadReference | NotUsedWarning, "class Nested { int P { set {} get => p1; } }"), 7412("1621", BadReference | NotUsedWarning, "class Nested { int P { get => 0; set => p1 = 0; } }"), 7413("1624", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => p1; } }"), 7414("1625", BadReference | NotUsedWarning, "class Nested { int this[int x] { set => p1 = 0; } }"), 7415("1626", BadReference | NotUsedWarning, "class Nested { int this[int x] { set {} get => p1; } }"), 7416("1627", BadReference | NotUsedWarning, "class Nested { int this[int x] { get => 0; set => p1 = 0; } }"), 7417("1628", BadReference | NotUsedWarning, "class Nested { ~Nested() => p1 = 0; }"), 7418("1629", BadReference | NotUsedWarning, "class Nested { public Nested() : this(p1) {} Nested(int x) {} }"), 7419("1630", BadReference | NotUsedWarning, "class Nested { public Nested() => p1 = 0; }"), 7422("1708", NotUsedWarning | TwoBodies, "static C1() {} => p1 = 0;"), 7423("1709", NotUsedWarning | TwoBodies, "static void M() {} => p1 = 0;"), 7424("1711", NotUsedWarning | TwoBodies, "static int P { get { return 0; } => p1; }"), 7425("1712", NotUsedWarning | TwoBodies, "static int P { set {} => p1 = 0; }"), 7426("1713", NotUsedWarning | TwoBodies, "static int P { set {} get { return 0; } => p1; }"), 7427("1714", NotUsedWarning | TwoBodies, "static int P { get => 0; set {} => p1 = 0; }"), 7428("1715", NotUsedWarning | TwoBodies, "static event System.Action E { add {} => p1 = 0; remove {} }"), 7429("1716", NotUsedWarning | TwoBodies, "static event System.Action E { add {} remove {} => p1 = 0; }"), 7442("1808", NotUsedWarning | TwoBodies, "class Nested { static Nested() {} => p1 = 0; }"), 7443("1809", NotUsedWarning | TwoBodies, "class Nested { static void M() {} => p1 = 0; }"), 7444("1811", NotUsedWarning | TwoBodies, "class Nested { static int P { get { return 0; } => p1; } }"), 7445("1812", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} => p1 = 0; } }"), 7446("1813", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} get { return 0; } => p1; } }"), 7447("1814", NotUsedWarning | TwoBodies, "class Nested { static int P { get => 0; set {} => p1 = 0; } }"), 7448("1817", NotUsedWarning | TwoBodies, "class Nested { void M() {} => p1 = 0; }"), 7449("1818", NotUsedWarning | TwoBodies, "class Nested { int P { get { return 0; } => p1; } }"), 7450("1819", NotUsedWarning | TwoBodies, "class Nested { int P { set {} => p1 = 0; } }"), 7451("1820", NotUsedWarning | TwoBodies, "class Nested { int P { set {} get { return 0; } => p1; } }"), 7452("1821", NotUsedWarning | TwoBodies, "class Nested { int P { get => 0; set {} => p1 = 0; } }"), 7453("1824", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get { return 0; } => p1; } }"), 7454("1825", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} => p1 = 0; } }"), 7455("1826", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} get { return 0; } => p1; } }"), 7456("1827", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get => 0; set {} => p1 = 0; } }"), 7457("1828", NotUsedWarning | TwoBodies, "class Nested { ~Nested() {} => p1 = 0; }"), 7458("1830", NotUsedWarning | TwoBodies, "class Nested { public Nested() {} => p1 = 0; }"), 7461("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 7462("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7463("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 7464("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 7465("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7466("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 7467("1908", NotUsedWarning | AttributesNotAllowed, "static C1() { [Attr1(p1)] return; }"), 7468("1909", NotUsedWarning | AttributesNotAllowed, "static void M() { [Attr1(p1)] return; }"), 7469("1911", NotUsedWarning | AttributesNotAllowed, "static int P { get { [Attr1(p1)] return 0; } }"), 7470("1912", NotUsedWarning | AttributesNotAllowed, "static int P { set { [Attr1(p1)] return; } }"), 7471("1913", NotUsedWarning | AttributesNotAllowed, "static int P { set {} get { [Attr1(p1)] return 0; } }"), 7472("1914", NotUsedWarning | AttributesNotAllowed, "static int P { get => 0; set { [Attr1(p1)] return; } }"), 7473("1915", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 7474("1916", NotUsedWarning | AttributesNotAllowed, "static event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 7475("1917", NotUsedWarning | AttributesNotAllowed, "void M() { [Attr1(p1)] return; }"), 7476("1918", NotUsedWarning | AttributesNotAllowed, "int P { get { [Attr1(p1)] return 0; } }"), 7477("1919", NotUsedWarning | AttributesNotAllowed, "int P { set { [Attr1(p1)] return; } }"), 7478("1920", NotUsedWarning | AttributesNotAllowed, "int P { set {} get { [Attr1(p1)] return 0; } }"), 7479("1921", NotUsedWarning | AttributesNotAllowed, "int P { get => 0; set { [Attr1(p1)] return; } }"), 7480("1922", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add { [Attr1(p1)] return; } remove {} }"), 7481("1923", NotUsedWarning | AttributesNotAllowed, "event System.Action E { add {} remove { [Attr1(p1)] return; } }"), 7482("1924", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get { [Attr1(p1)] return 0; } }"), 7483("1925", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set { [Attr1(p1)] return; } }"), 7484("1926", NotUsedWarning | AttributesNotAllowed, "int this[int x] { set {} get { [Attr1(p1)] return 0; } }"), 7485("1927", NotUsedWarning | AttributesNotAllowed, "int this[int x] { get => 0; set { [Attr1(p1)] return; } }"), 7486("1928", NotUsedWarning | AttributesNotAllowed, "~C1() { [Attr1(p1)] return; }"), 7487("1929", NotUsedWarning | AttributesNotAllowed, "public C1() : this(() => { [Attr1(p1)] return; }) {} C1(System.Action x) : this(0) {}"), 7488("1930", NotUsedWarning | AttributesNotAllowed, "public C1() : this(0) { [Attr1(p1)] return; }"), 7489("1935", NotUsedWarning | AttributesNotAllowed, "class Nested() : NestedBase(() => { [Attr1(p1)] return; }) {} class NestedBase(System.Action x) { object F = x; } "), 7491("2001", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7492("2002", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7493("2003", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7494("2004", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7495("2006", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7496("2007", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7497("2008", BadReference | NotUsedWarning | BadAttributeValue, "static C1() { [Attr1(p1)] void local(){} local(); }"), 7498("2009", BadReference | NotUsedWarning | BadAttributeValue, "static void M() { [Attr1(p1)] void local(){} local(); }"), 7499("2011", BadReference | NotUsedWarning | BadAttributeValue, "static int P { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7500("2012", BadReference | NotUsedWarning | BadAttributeValue, "static int P { set { [Attr1(p1)] void local(){} local(); } }"), 7501("2013", BadReference | NotUsedWarning | BadAttributeValue, "static int P { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7502("2014", BadReference | NotUsedWarning | BadAttributeValue, "static int P { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 7503("2015", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add { [Attr1(p1)] void local(){} local(); } remove {} }"), 7504("2016", BadReference | NotUsedWarning | BadAttributeValue, "static event System.Action E { add {} remove { [Attr1(p1)] void local(){} local(); } }"), 7505("2017", BadReference | NotUsedWarning | BadAttributeValue, "void M() { [Attr1(p1)] void local(){} local(); }"), 7506("2018", BadReference | NotUsedWarning | BadAttributeValue, "int P { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7507("2019", BadReference | NotUsedWarning | BadAttributeValue, "int P { set { [Attr1(p1)] void local(){} local(); } }"), 7508("2020", BadReference | NotUsedWarning | BadAttributeValue, "int P { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7509("2021", BadReference | NotUsedWarning | BadAttributeValue, "int P { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 7510("2022", BadReference | NotUsedWarning | BadAttributeValue, "event System.Action E { add { [Attr1(p1)] void local(){} local(); } remove {} }"), 7511("2023", BadReference | NotUsedWarning | BadAttributeValue, "event System.Action E { add {} remove { [Attr1(p1)] void local(){} local(); } }"), 7512("2024", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7513("2025", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { set { [Attr1(p1)] void local(){} local(); } }"), 7514("2026", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { set {} get { [Attr1(p1)] void local(){} local(); return 0; } }"), 7515("2027", BadReference | NotUsedWarning | BadAttributeValue, "int this[int x] { get => 0; set { [Attr1(p1)] void local(){} local(); } }"), 7516("2028", BadReference | NotUsedWarning | BadAttributeValue, "~C1() { [Attr1(p1)] void local(){} local(); }"), 7517("2029", BadReference | NotUsedWarning | BadAttributeValue, "public C1() : this(() => { [Attr1(p1)] void local(){} local(); }) {} C1(System.Action x) : this(0) {}"), 7518("2030", BadReference | NotUsedWarning | BadAttributeValue, "public C1() : this(0) { [Attr1(p1)] void local(){} local(); }"), 7519("2035", BadReference | NotUsedWarning | BadAttributeValue, "class Nested() : NestedBase(() => { [Attr1(p1)] void local(){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 7525("2104", NotUsedWarning | Shadows, "public static System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7526("2106", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7527("2107", NotUsedWarning | Shadows, "public static event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7528("2108", NotUsedWarning, "static C1() { [Attr1(nameof(p1))] void local(){} local(); }"), 7529("2109", NotUsedWarning, "static void M() { [Attr1(nameof(p1))] void local(){} local(); }"), 7530("2111", NotUsedWarning, "static int P { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7531("2112", NotUsedWarning, "static int P { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7532("2113", NotUsedWarning, "static int P { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7533("2114", NotUsedWarning, "static int P { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7534("2115", NotUsedWarning, "static event System.Action E { add { [Attr1(nameof(p1))] void local(){} local(); } remove {} }"), 7535("2116", NotUsedWarning, "static event System.Action E { add {} remove { [Attr1(nameof(p1))] void local(){} local(); } }"), 7536("2117", NotUsedWarning, "void M() { [Attr1(nameof(p1))] void local(){} local(); }"), 7537("2118", NotUsedWarning, "int P { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7538("2119", NotUsedWarning, "int P { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7539("2120", NotUsedWarning, "int P { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7540("2121", NotUsedWarning, "int P { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7541("2122", NotUsedWarning, "event System.Action E { add { [Attr1(nameof(p1))] void local(){} local(); } remove {} }"), 7542("2123", NotUsedWarning, "event System.Action E { add {} remove { [Attr1(nameof(p1))] void local(){} local(); } }"), 7543("2124", NotUsedWarning, "int this[int x] { get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7544("2125", NotUsedWarning, "int this[int x] { set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7545("2126", NotUsedWarning, "int this[int x] { set {} get { [Attr1(nameof(p1))] void local(){} local(); return 0; } }"), 7546("2127", NotUsedWarning, "int this[int x] { get => 0; set { [Attr1(nameof(p1))] void local(){} local(); } }"), 7547("2128", NotUsedWarning, "~C1() { [Attr1(nameof(p1))] void local(){} local(); }"), 7548("2129", NotUsedWarning, "public C1() : this(() => { [Attr1(nameof(p1))] void local(){} local(); }) {} C1(System.Action x) : this(0) {}"), 7549("2130", NotUsedWarning, "public C1() : this(0) { [Attr1(nameof(p1))] void local(){} local(); }"), 7550("2135", NotUsedWarning, "class Nested() : NestedBase(() => { [Attr1(nameof(p1))] void local(){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 7556("2204", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action F = () => { void local(int x = p1){} local(); };"), 7557("2206", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 7558("2207", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static event System.Action E = () => { void local(int x = p1){} local(); };"), 7559("2208", BadReference | NotUsedWarning | BadDefaultValue, "static C1() { void local(int x = p1){} local(); }"), 7560("2209", BadReference | NotUsedWarning | BadDefaultValue, "static void M() { void local(int x = p1){} local(); }"), 7561("2211", BadReference | NotUsedWarning | BadDefaultValue, "static int P { get { void local(int x = p1){} local(); return 0; } }"), 7562("2212", BadReference | NotUsedWarning | BadDefaultValue, "static int P { set { void local(int x = p1){} local(); } }"), 7563("2213", BadReference | NotUsedWarning | BadDefaultValue, "static int P { set {} get { void local(int x = p1){} local(); return 0; } }"), 7564("2214", BadReference | NotUsedWarning | BadDefaultValue, "static int P { get => 0; set { void local(int x = p1){} local(); } }"), 7565("2215", BadReference | NotUsedWarning | BadDefaultValue, "static event System.Action E { add { void local(int x = p1){} local(); } remove {} }"), 7566("2216", BadReference | NotUsedWarning | BadDefaultValue, "static event System.Action E { add {} remove { void local(int x = p1){} local(); } }"), 7567("2217", BadReference | NotUsedWarning | BadDefaultValue, "void M() { void local(int x = p1){} local(); }"), 7568("2218", BadReference | NotUsedWarning | BadDefaultValue, "int P { get { void local(int x = p1){} local(); return 0; } }"), 7569("2219", BadReference | NotUsedWarning | BadDefaultValue, "int P { set { void local(int x = p1){} local(); } }"), 7570("2220", BadReference | NotUsedWarning | BadDefaultValue, "int P { set {} get { void local(int x = p1){} local(); return 0; } }"), 7571("2221", BadReference | NotUsedWarning | BadDefaultValue, "int P { get => 0; set { void local(int x = p1){} local(); } }"), 7572("2222", BadReference | NotUsedWarning | BadDefaultValue, "event System.Action E { add { void local(int x = p1){} local(); } remove {} }"), 7573("2223", BadReference | NotUsedWarning | BadDefaultValue, "event System.Action E { add {} remove { void local(int x = p1){} local(); } }"), 7574("2224", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { get { void local(int x = p1){} local(); return 0; } }"), 7575("2225", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { set { void local(int x = p1){} local(); } }"), 7576("2226", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { set {} get { void local(int x = p1){} local(); return 0; } }"), 7577("2227", BadReference | NotUsedWarning | BadDefaultValue, "int this[int x] { get => 0; set { void local(int x = p1){} local(); } }"), 7578("2228", BadReference | NotUsedWarning | BadDefaultValue, "~C1() { void local(int x = p1){} local(); }"), 7579("2229", BadReference | NotUsedWarning | BadDefaultValue, "public C1() : this(() => { void local(int x = p1){} local(); }) {} C1(System.Action x) : this(0) {}"), 7580("2230", BadReference | NotUsedWarning | BadDefaultValue, "public C1() : this(0) { void local(int x = p1){} local(); }"), 7581("2235", BadReference | NotUsedWarning | BadDefaultValue, "class Nested() : NestedBase(() => { void local(int x = p1){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 7587("2304", NotUsedWarning | Shadows, "public static System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 7588("2306", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 7589("2307", NotUsedWarning | Shadows, "public static event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 7590("2308", NotUsedWarning, "static C1() { void local(string x = nameof(p1)){} local(); }"), 7591("2309", NotUsedWarning, "static void M() { void local(string x = nameof(p1)){} local(); }"), 7592("2311", NotUsedWarning, "static int P { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7593("2312", NotUsedWarning, "static int P { set { void local(string x = nameof(p1)){} local(); } }"), 7594("2313", NotUsedWarning, "static int P { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7595("2314", NotUsedWarning, "static int P { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 7596("2315", NotUsedWarning, "static event System.Action E { add { void local(string x = nameof(p1)){} local(); } remove {} }"), 7597("2316", NotUsedWarning, "static event System.Action E { add {} remove { void local(string x = nameof(p1)){} local(); } }"), 7598("2317", NotUsedWarning, "void M() { void local(string x = nameof(p1)){} local(); }"), 7599("2318", NotUsedWarning, "int P { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7600("2319", NotUsedWarning, "int P { set { void local(string x = nameof(p1)){} local(); } }"), 7601("2320", NotUsedWarning, "int P { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7602("2321", NotUsedWarning, "int P { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 7603("2322", NotUsedWarning, "event System.Action E { add { void local(string x = nameof(p1)){} local(); } remove {} }"), 7604("2323", NotUsedWarning, "event System.Action E { add {} remove { void local(string x = nameof(p1)){} local(); } }"), 7605("2324", NotUsedWarning, "int this[int x] { get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7606("2325", NotUsedWarning, "int this[int x] { set { void local(string x = nameof(p1)){} local(); } }"), 7607("2326", NotUsedWarning, "int this[int x] { set {} get { void local(string x = nameof(p1)){} local(); return 0; } }"), 7608("2327", NotUsedWarning, "int this[int x] { get => 0; set { void local(string x = nameof(p1)){} local(); } }"), 7609("2328", NotUsedWarning, "~C1() { void local(string x = nameof(p1)){} local(); }"), 7610("2329", NotUsedWarning, "public C1() : this(() => { void local(string x = nameof(p1)){} local(); }) {} C1(System.Action x) : this(0) {}"), 7611("2330", NotUsedWarning, "public C1() : this(0) { void local(string x = nameof(p1)){} local(); }"), 7612("2335", NotUsedWarning, "class Nested() : NestedBase(() => { void local(string x = nameof(p1)){} local(); }) {} class NestedBase(System.Action x) { object F = x; } "), 7618("2404", NotUsedWarning | Shadows, "public static int F = nameof(p1).Length;"), 7619("2405", NotUsedWarning | Shadows, "public const string F = nameof(p1);"), 7620("2406", NotUsedWarning | Shadows, "public static int P {get;} = nameof(p1).Length;"), 7621("2407", NotUsedWarning | Shadows, "public static event System.Action E = () => nameof(p1).Length.ToString();"), 7622("2408", NotUsedWarning, "static C1() { _ = nameof(p1); }"), 7623("2409", NotUsedWarning, "static void M() { _ = nameof(p1); }"), 7624("2411", NotUsedWarning, "static int P { get { return nameof(p1).Length; } }"), 7625("2412", NotUsedWarning, "static int P { set { _ = nameof(p1); } }"), 7626("2413", NotUsedWarning, "static int P { set {} get { return nameof(p1).Length; } }"), 7627("2414", NotUsedWarning, "static int P { get => 0; set { _ = nameof(p1); } }"), 7628("2415", NotUsedWarning, "static event System.Action E { add { _ = nameof(p1); } remove {} }"), 7629("2416", NotUsedWarning, "static event System.Action E { add {} remove { _ = nameof(p1); } }"), 7630("2417", NotUsedWarning, "void M() { _ = nameof(p1); }"), 7631("2418", NotUsedWarning, "int P { get { return nameof(p1).Length; } }"), 7632("2419", NotUsedWarning, "int P { set { _ = nameof(p1); } }"), 7633("2420", NotUsedWarning, "int P { set {} get { return nameof(p1).Length; } }"), 7634("2421", NotUsedWarning, "int P { get => 0; set { _ = nameof(p1); } }"), 7635("2422", NotUsedWarning, "event System.Action E { add { _ = nameof(p1); } remove {} }"), 7636("2423", NotUsedWarning, "event System.Action E { add {} remove { _ = nameof(p1); } }"), 7637("2424", NotUsedWarning, "int this[int x] { get { return nameof(p1).Length; } }"), 7638("2425", NotUsedWarning, "int this[int x] { set { _ = nameof(p1); } }"), 7639("2426", NotUsedWarning, "int this[int x] { set {} get { return nameof(p1).Length; } }"), 7640("2427", NotUsedWarning, "int this[int x] { get => 0; set { _ = nameof(p1); } }"), 7641("2428", NotUsedWarning, "~C1() { _ = nameof(p1); }"), 7642("2429", NotUsedWarning, "public C1() : this(nameof(p1).Length) {}"), 7645("2501", NotUsedWarning, "class Nested { public int F = nameof(p1).Length; }"), 7646("2502", NotUsedWarning, "class Nested { public int P {get;} = nameof(p1).Length; }"), 7647("2503", NotUsedWarning, "class Nested { public event System.Action E = () => nameof(p1).Length.ToString(); }"), 7648("2504", NotUsedWarning, "class Nested { public static int F = nameof(p1).Length; }"), 7649("2506", NotUsedWarning, "class Nested { public static int P {get;} = nameof(p1).Length; }"), 7650("2507", NotUsedWarning, "class Nested { public static event System.Action E = () => nameof(p1).Length.ToString(); }"), 7651("2508", NotUsedWarning, "class Nested { static Nested() { _ = nameof(p1); } }"), 7652("2509", NotUsedWarning, "class Nested { static void M() { _ = nameof(p1); } }"), 7653("2511", NotUsedWarning, "class Nested { static int P { get { return nameof(p1).Length; } } }"), 7654("2512", NotUsedWarning, "class Nested { static int P { set { _ = nameof(p1); } } }"), 7655("2513", NotUsedWarning, "class Nested { static int P { set {} get { return nameof(p1).Length; } } }"), 7656("2514", NotUsedWarning, "class Nested { static int P { get => 0; set { _ = nameof(p1); } } }"), 7657("2515", NotUsedWarning, "class Nested { static event System.Action E { add { _ = nameof(p1); } remove {} } }"), 7658("2516", NotUsedWarning, "class Nested { static event System.Action E { add {} remove { _ = nameof(p1); } } }"), 7659("2517", NotUsedWarning, "class Nested { void M() { _ = nameof(p1); } }"), 7660("2518", NotUsedWarning, "class Nested { int P { get { return nameof(p1).Length; } } }"), 7661("2519", NotUsedWarning, "class Nested { int P { set { _ = nameof(p1); } } }"), 7662("2520", NotUsedWarning, "class Nested { int P { set {} get { return nameof(p1).Length; } } }"), 7663("2521", NotUsedWarning, "class Nested { int P { get => 0; set { _ = nameof(p1); } } }"), 7664("2522", NotUsedWarning, "class Nested { event System.Action E { add { _ = nameof(p1); } remove {} } }"), 7665("2523", NotUsedWarning, "class Nested { event System.Action E { add {} remove { _ = nameof(p1); } } }"), 7666("2524", NotUsedWarning, "class Nested { int this[int x] { get { return nameof(p1).Length; } } }"), 7667("2525", NotUsedWarning, "class Nested { int this[int x] { set { _ = nameof(p1); } } }"), 7668("2526", NotUsedWarning, "class Nested { int this[int x] { set {} get { return nameof(p1).Length; } } }"), 7669("2527", NotUsedWarning, "class Nested { int this[int x] { get => 0; set { _ = nameof(p1); } } }"), 7670("2528", NotUsedWarning, "class Nested { ~Nested() { _ = nameof(p1); } }"), 7671("2529", NotUsedWarning, "class Nested { public Nested() : this(nameof(p1).Length) {} Nested(int x) {} }"), 7672("2530", NotUsedWarning, "class Nested { public Nested() { _ = nameof(p1); } }"), 7788Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning); 7856if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0) 7959if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0)) 8029("0001", BadReference | BadAttributeValue | NotUsedWarning, "[Attr1(p1)]"), 8030("0002", NotUsedWarning, "[Attr1(nameof(p1))]"), 8133("0001", NotInScope | NotUsedWarning, "[Attr1(p1)]"), 8134("0002", NotUsedWarning | Shadows, "[Attr1(nameof(p1))]"), 8212("0001", NotInScope | NotUsedWarning, "p1"), 8213("0002", NotInScope | NotUsedWarning, "nameof(p1)"),