|
Project
|
ReSharper
|
|
Priority
|
Critical |
|
Type
|
Bug |
|
Fix versions
|
5.0 |
|
State
|
Fixed |
|
Assignee
|
Olga Lobacheva |
|
Subsystem
|
PSI |
|
Affected versions
|
No Affected versions |
|
Fixed in build
|
No Fixed in build |
using System;
class A
{
static void Main()
{
int x = new C().Foo(1, 1); // error CS0029: Cannot implicitly convert type 'void' to 'int'
}
}
abstract class B<S>
{
public abstract int Foo<T>(T x, S y);
public void Foo<T>(int x, T y){}
}
class C : B<int>
{
public override int Foo<T>(T x, int y)
{
throw new NotImplementedException();
}
}
class P { public void Foo(int o){} public virtual string Foo(object o) { return null; } } class P1: P { public override string Foo(object o) { return null; } } class K { public void Usage() { string foo = new P1().Foo(1); } }