[cominterop] Default to [in] parameter direction when not specified explicitly.
[mono-project.git] / mcs / errors / cs1657.cs
blobef0d48b75d10c56466a6c4dfa5cee91b0843b4cb
1 // CS1657: Cannot pass `i' as a ref or out argument because it is a `foreach iteration variable'
2 // Line: 9
4 class E
6 public E (int[] args)
8 foreach (int i in args)
9 Init (ref i);
12 void Init (ref int val) {}