using System;
using System.Collections.Generic;
// CHALLENGE:
// Code golf setting o.Bar to true.
// a.Bar must be set to true and the code must not throw an exception.
public class Program
{
public class Foo
public bool Bar { get; set; } = false;
}
public static void SetBar(Foo? o)
// CHALLENGE HERE:
//if(o!=null)o.Bar=true;
// vs
_=o!=null&&(o.Bar=true);
// END CHALLENGE.
public static void Main()
Foo? a = new();
Foo? b = null;
SetBar(a);
SetBar(b);
Console.WriteLine(a!.Bar == true ? "SUCCESS" : "FAIL");