diff options
Diffstat (limited to 'mcs/errors/cs1061-14.cs')
-rw-r--r-- | mcs/errors/cs1061-14.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/errors/cs1061-14.cs b/mcs/errors/cs1061-14.cs new file mode 100644 index 0000000000..e5c3db5d96 --- /dev/null +++ b/mcs/errors/cs1061-14.cs @@ -0,0 +1,25 @@ +// CS1061: Type `string' does not contain a definition for `Name' and no extension method `Name' of type `string' could be found. Are you missing an assembly reference? +// Line: 18 + +using System; + +static class X +{ + public static void Main () + { + } + + static void Foo () + { + var fileName = ""; + string[] all = null; + + all.Each (x => { + var name = fileName.Name; + }); + } + + static void Each<T> (this T[] s, Action<T> a) + { + } +} |