24 lines
281 B
C#
24 lines
281 B
C#
|
namespace Test
|
||
|
{
|
||
|
public class Bar<T, U>
|
||
|
{
|
||
|
public void DoSomething<V> () where V : U
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class Baz
|
||
|
{
|
||
|
public void GetInTroubleHere ()
|
||
|
{
|
||
|
var bar = new Bar<string, string> ();
|
||
|
bar.DoSomething<string> ();
|
||
|
}
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|