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

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

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