use MOONLIGHT symbol
[mcs.git] / errors / cs0206-2.cs
blobda3a554506dbc1dd5617bcac31e7f2219efe3f97
1 // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
2 // Line: 22
4 using System;
6 namespace N
8 public class Test
10 public double this[int i]
12 get { return 1; }
15 public static void WriteOutData(out double d)
17 d = 5.0;
20 public static void Main(string[] args)
22 Test test = new Test();
23 WriteOutData(out test[1]);