Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Eugene Pasynkov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Build
804
  • Submitted by   Corey Kosak
    20 months ago (31 May 2008 21:40)
  • Updated by Corey Kosak
    20 months ago (03 Jun 2008 14:58)
  • Jira: RSRP-70646
    (history, comments)

RSRP-70646

Fails to flag incorrect call to AsEnumerable

0
ReSharper accepts the following program, compiler does not:

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>();
    }
  }
}



Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments