37 references to TwoBodies
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Semantics\PrimaryConstructorTests.cs (37)
7421("1708", NotUsedWarning | TwoBodies, "static C1() {} => p1 = 0;"), 7422("1709", NotUsedWarning | TwoBodies, "static void M() {} => p1 = 0;"), 7423("1711", NotUsedWarning | TwoBodies, "static int P { get { return 0; } => p1; }"), 7424("1712", NotUsedWarning | TwoBodies, "static int P { set {} => p1 = 0; }"), 7425("1713", NotUsedWarning | TwoBodies, "static int P { set {} get { return 0; } => p1; }"), 7426("1714", NotUsedWarning | TwoBodies, "static int P { get => 0; set {} => p1 = 0; }"), 7427("1715", NotUsedWarning | TwoBodies, "static event System.Action E { add {} => p1 = 0; remove {} }"), 7428("1716", NotUsedWarning | TwoBodies, "static event System.Action E { add {} remove {} => p1 = 0; }"), 7429("1717", Captured | TwoBodies, "void M() {} => p1 = 0;"), 7430("1718", Captured | TwoBodies, "int P { get { return 0; } => p1; }"), 7431("1719", Captured | TwoBodies, "int P { set {} => p1 = 0; }"), 7432("1720", Captured | TwoBodies, "int P { set {} get { return 0; } => p1; }"), 7433("1721", Captured | TwoBodies, "int P { get => 0; set {} => p1 = 0; }"), 7434("1724", Captured | TwoBodies, "int this[int x] { get { return 0; } => p1; }"), 7435("1725", Captured | TwoBodies, "int this[int x] { set {} => p1 = 0; }"), 7436("1726", Captured | TwoBodies, "int this[int x] { set {} get { return 0; } => p1; }"), 7437("1727", Captured | TwoBodies, "int this[int x] { get => 0; set {} => p1 = 0; }"), 7438("1728", Captured | TwoBodies, "~C1() {} => p1 = 0;"), 7439("1730", Captured | TwoBodies, "public C1() : this(0) {} => p1 = 0;"), 7441("1808", NotUsedWarning | TwoBodies, "class Nested { static Nested() {} => p1 = 0; }"), 7442("1809", NotUsedWarning | TwoBodies, "class Nested { static void M() {} => p1 = 0; }"), 7443("1811", NotUsedWarning | TwoBodies, "class Nested { static int P { get { return 0; } => p1; } }"), 7444("1812", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} => p1 = 0; } }"), 7445("1813", NotUsedWarning | TwoBodies, "class Nested { static int P { set {} get { return 0; } => p1; } }"), 7446("1814", NotUsedWarning | TwoBodies, "class Nested { static int P { get => 0; set {} => p1 = 0; } }"), 7447("1817", NotUsedWarning | TwoBodies, "class Nested { void M() {} => p1 = 0; }"), 7448("1818", NotUsedWarning | TwoBodies, "class Nested { int P { get { return 0; } => p1; } }"), 7449("1819", NotUsedWarning | TwoBodies, "class Nested { int P { set {} => p1 = 0; } }"), 7450("1820", NotUsedWarning | TwoBodies, "class Nested { int P { set {} get { return 0; } => p1; } }"), 7451("1821", NotUsedWarning | TwoBodies, "class Nested { int P { get => 0; set {} => p1 = 0; } }"), 7452("1824", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get { return 0; } => p1; } }"), 7453("1825", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} => p1 = 0; } }"), 7454("1826", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { set {} get { return 0; } => p1; } }"), 7455("1827", NotUsedWarning | TwoBodies, "class Nested { int this[int x] { get => 0; set {} => p1 = 0; } }"), 7456("1828", NotUsedWarning | TwoBodies, "class Nested { ~Nested() {} => p1 = 0; }"), 7457("1830", NotUsedWarning | TwoBodies, "class Nested { public Nested() {} => p1 = 0; }"), 8006if ((flags & TestFlags.TwoBodies) != 0)