[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs1061-14.cs
1 // 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?
2 // Line: 18
3
4 using System;
5
6 static class X
7 {
8         public static void Main ()
9         {
10         }
11
12         static void Foo ()
13         {
14                 var fileName = "";
15                 string[] all = null;
16
17                 all.Each (x => {
18                         var name = fileName.Name;
19                 });
20         }
21
22         static void Each<T> (this T[] s, Action<T> a)
23         {
24         }
25 }