Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Feb 16, 2012 3:43:11 AM |
Updated | Feb 16, 2012 3:43:11 AM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System; class A { static bool Foo<T>(T x, string s) where T : class, IDisposable { return x == s; } static void Main() { Console.WriteLine(Foo<IDisposable>(null, null)); Console.WriteLine(Foo<IDisposable>(null, "")); } }