Generics inherited constructors are not detected correctly.
In R# build 216 the following code is detected as erroneous:
-
class BaseClass
{
BaseClass(T parameter)
{ ... }
}
class InheritorClass : BaseClass]]>
{
InheritorClass(Guid parameter) : base(parameter)
{ ... }
}
-
Compilations succeeds and everything works as intended, but R# code
analisys shows error "Cannot resolve constructor 'base(Guid), canditates
are ...'"
Please sign in to leave a comment.
Not reproducable.....
Please could you try to reproduce this problem in a small stand-alone
example?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Serge Populov" <populov@gmail.com> wrote in message
news:op.s4lqmynq2bwbha@populov.kontur...
In R# build 216 the following code is detected as erroneous:
-
class BaseClass { BaseClass(T parameter) { ... } } class InheritorClass : BaseClass]]>
{
InheritorClass(Guid parameter) : base(parameter)
{ ... }
}
-
Compilations succeeds and everything works as intended, but R# code
analisys shows error "Cannot resolve constructor 'base(Guid), canditates
are ...'"
I'm sorry. Previous code was too simplified. With single consuructor
problem really doesn't appear.
In the following code it really does.
-
using System;
using System.Data;
namespace GenericConstructorDemo
{
class BaseClass { public BaseClass(T param) { } public BaseClass(DataRow dr) { } } class InheritorClass : BaseClass]]>
{
public InheritorClass(Guid param) : base(param)
{
}
}
}
-
On Tue, 07 Feb 2006 17:21:21 +0500, Eugene Pasynkov (JetBrains)
<Eugene.Pasynkov@jetbrains.com> wrote:
>
Thank you.
I'll check it
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Serge Populov" <populov@gmail.com> wrote in message
news:op.s4l2cisx2bwbha@populov.kontur...
>
>
>
>
>
>
>> Not reproducable.....
>> Please could you try to reproduce this problem in a small stand-alone
>> example?
>>