Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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;
}
}