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

cs1605.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8bcd528b878a176dd9943bf1bac5e223b7c8762c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs1605.cs: Cannot pass 'i' as a ref or out argument because it is read-only
// Line: 9

class E
{
    public E (int[] args)
    {
        foreach (int i in args)
            Init (ref i);
    }
    
    void Init (ref int val) {}
       
}