Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Dmitry Lomov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Build
810
Fixed in build
906
  • Submitted by   Vladimir Reshetnikov
    20 months ago (29 May 2008 20:17)
  • Updated by Vladimir Reshetnikov
    19 months ago (03 Jul 2008 17:08)
  • Jira: RSRP-70426
    (history, comments)

RSRP-70426

False error 'Type int must be a reference type...'

0
using System;

class Program
{
    delegate T F<T>() where T : class;
    static void Main()
    {
        new Program().Foo(() => 1);
    }
    void Foo<T>(F<T> x) where T : class { }
}

static class A
{
    public static void Foo<T>(this T x, Func<int> f) { }
}


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