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

23 lines
466 B
C#

// CS0199: A static readonly field `ClassMain.index' cannot be passed ref or out (except in a static constructor)
// Line: 19
class ClassMain {
static readonly int index;
static ClassMain ()
{
GetMaxIndex (ref index);
}
static void GetMaxIndex (ref int value)
{
value = 5;
}
public static void Main ()
{
GetMaxIndex (ref index);
}
}