| Priority |
Normal |
| Type | Bug |
| State | Fixed |
| Assignee | Eugene Pasynkov |
| Subsystem | No subsystem |
| Affected versions |
No affected versions
|
| Fixed in |
4.1
|
| Fixed in build | |
| Build |
804
|
RSRP-70646 |
Fails to flag incorrect call to AsEnumerable |
|
|
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication11 {
public class MainClass {
public static void Main() {
var myList=new List<string>();
//error CS1928: 'System.Collections.Generic.List<string>' does not contain a
//definition for 'AsEnumerable' and the best extension method overload
//'System.Linq.Enumerable.AsEnumerable<TSource>(System.Collections.Generic.IEnumerable<TSource>)'
//has some invalid arguments
var temp=myList.AsEnumerable<object>();
}
}
}