a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
301 B
C#
29 lines
301 B
C#
public class C
|
|
{
|
|
public void M<U, V> (out U u, ref V v)
|
|
{
|
|
u = default (U);
|
|
}
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static int Main ()
|
|
{
|
|
dynamic u = "s";
|
|
dynamic v = 5;
|
|
dynamic c = new C ();
|
|
c.M (out u, ref v);
|
|
|
|
if (v != 5)
|
|
return 1;
|
|
|
|
if (u != null)
|
|
return 2;
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|