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: 53678db1e74689f0bf86f5462fcd3d035f15269e (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) {}
       
}