[Http]: Cosmetic, remove some dead code.
[mono-project.git] / mcs / errors / cs1612-5.cs
blob1db5cb158cd6d443285072953aff65fbfea64c4c
1 // CS1612: Cannot modify a value type return value of `bar.this[int]'. Consider storing the value in a temporary variable
2 // Line: 19
4 struct foo {
5 public int x;
8 class bar {
9 public foo this [int x] {
10 get { return new foo (); }
11 set { }
15 class main {
16 static void baz (out int x) { x = 5; }
17 static void Main ()
19 bar b = new bar ();
20 baz (out b [0].x);