a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
323 B
C#
27 lines
323 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
class A
|
|
{
|
|
void Test<T, U> () where T : class, IList<U>
|
|
{
|
|
Action a = () => {
|
|
var d = default (T);
|
|
Action a2 = () => {
|
|
d = null;
|
|
};
|
|
|
|
a2 ();
|
|
};
|
|
|
|
a ();
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
var a = new A ();
|
|
a.Test<int[], int> ();
|
|
return 0;
|
|
}
|
|
}
|