Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0199.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c8c53648e7ebaf3ad2bbfb6f602e7dfdc6d4a0c4 (plain)
1
2
3
4
5
6
7
8
// cs0199.cs: A static readonly field 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);
        }
}