X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0117-3.cs;h=63e2027bcffb162f14583c6b06192ec789f67298;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=f486cf0d795939ba0854714456d91d49a7c1649b;hpb=75df74a96c33af7a99e16e4281272f1b67334a48;p=mono.git diff --git a/mcs/errors/cs0117-3.cs b/mcs/errors/cs0117-3.cs index f486cf0d795..63e2027bcff 100644 --- a/mcs/errors/cs0117-3.cs +++ b/mcs/errors/cs0117-3.cs @@ -1,23 +1,24 @@ -// cs0117-3.cs: `A' does not contain a definition for `Foo' -// Line: 16 +// CS0117: `Color' does not contain a definition for `Transparent' +// Line: + using System; -using System.Runtime.CompilerServices; -class A +struct Color { - [IndexerName ("Foo")] - public int this [int index] { - get { return index; } - set { ; } - } +} - static void Test (A a, int value) +static class ExtensionMethods +{ + public static Color Transparent (this Color c) { - a.Foo = value; + return new Color (); } +} +class MainClass +{ public static void Main () { - Test (new A (), 9); + var c = Color.Transparent (); } }