a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
293 B
C#
32 lines
293 B
C#
using System;
|
|
|
|
class A
|
|
{
|
|
public int value;
|
|
|
|
public A (int value)
|
|
{
|
|
this.value = value;
|
|
}
|
|
}
|
|
|
|
class B
|
|
{
|
|
static void Foo (int i, out A a)
|
|
{
|
|
a = new A (i);
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
dynamic d = 6;
|
|
A a;
|
|
Foo (d, out a);
|
|
if (a.value != 6)
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
|