1 public static class CoalescingWithGenericsBug
3 class Service { public void Foo () { }
}
5 static T Provide
<T
> () where T
: class
7 return FindExisting
<T
> () ?? System
.Activator
.CreateInstance
<T
> ();
10 static T FindExisting
<T
> () where T
: class
17 Provide
<Service
> ().Foo ();