[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git] / mcs / errors / cs1061-2.cs
blob57284779e3b136ed97042598ada2c5a141eb5158
1 // CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found. Are you missing an assembly reference?
2 // Line: 17
4 using System;
5 using System.Runtime.CompilerServices;
7 class A
9 [IndexerName ("Foo")]
10 public int this [int index] {
11 get { return index; }
12 set { ; }
15 static void Test (A a, int value)
17 a.Foo = value;
20 public static void Main ()
22 Test (new A (), 9);