private void Start() { enabled = true ? true : val; x = this; x.enabled = true ? true : x.val; }
public void ExecuteTests() { enabled = true ? true : val; enabled = false ? true : val; tester.TestAssertion("Ternary access COWing 'this' succeeded", true); x = this; x.enabled = true ? true : val; x.enabled = false ? true : x.val; tester.TestAssertion("Ternary access COWing a field succeeded", true); }