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:56)
  • Updated by Corey Kosak
    20 months ago (03 Jun 2008 14:59)
  • Jira: RSRP-70647
    (history, comments)

RSRP-70647

Fails to flag incorrect program involving generics and extension methods

1
ReSharper accepts this program, the compiler does not.

This could be the same underlying bug as RSRP-70646, but I have no way to be sure.

using System.Collections.Generic;

namespace ConsoleApplication11 {
  public class MainClass {
    public static void Main() {
      var temp2=new[] {"hello"}.Test<string, MainClass>();
    }
  }

  public static class ExtensionMethods {
    public static IList<U> Test<T, U>(this IList<U> list) {
      return list;
    }
  }
}



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