10 public static class Bar
12 public static void DoStuff<T> (T item, Action<T> fn)
14 throw new ApplicationException ("failed");
17 public static void DoStuff<T> (T? item, Action<T> fn)
24 public static class Program
26 public static void Main ()
28 Foo<int>? value = new Foo<int> { Item = 3 };
29 Bar.DoStuff (value, x => Console.WriteLine (x.Item));