This is a migrated thread and some comments may be shown as answers.

This class subclasses one type with different arguments

3 Answers 51 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bradhh
Top achievements
Rank 2
bradhh asked on 12 Dec 2012, 06:59 PM
Since installing JustCode I am seeing the following error in the JustCode Errors window for some of my classes:

   VB.NET: This class subclasses one type with different arguments

The name of the class has the red underline. I have been able to find nothing explaining what this is or how to fix it. It occurs in a few of my classes, but many of them do not have this error. I do not know what is different about the ones which are exhibiting this error. The error does not appear in the regular Visual Studio error window, and the project still builds and runs normally.

Can you explain what is causing this? What sort of conditions would prompt an error of this type? I would like to resolve this issue so that I do not have unexplained red underlines in my code.

Thanks -

Brad Harris
brad@southcountysound.com

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 13 Dec 2012, 02:44 PM
Hello,

 Thanks for the feedback.
We successfully reproduced your issue and I will ask you if your case is the same.
Example:

Public Class Foo     'Here the same warning is shown
    Implements IFoo(Of String), IFoo(Of Integer)
End Class

Public Interface IFoo(Of T)

End Interface


If your case is not similar please report it and add as additional information that it is related to this ticket.
We will do our best to fix this issue, but meanwhile you can ignore the error as a temporary solution.

Greetings,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
0
bradhh
Top achievements
Rank 2
answered on 14 Dec 2012, 03:51 PM
My situation is not quite like that, though it is quite similar through an inheritance chain, like so:

Public Interface IFoo
  Inherits IComparable(Of IFoo), IEquatable(Of IFoo)
  ' other logic
End Interface
 
Public Class Foo
  Implements IFoo
  ' other logic
End Class
 
Public Class Bar
  Inherits Foo
  Implements IComparable(Of Bar), IEquatable(Of Bar)
  ' other logic
End Class

While this is currently working, I can see now that a different interface implementation strategy would probably be best.

Thanks -

Brad Harris
brad@southcountysound.com
0
Zdravko
Telerik team
answered on 17 Dec 2012, 02:46 PM
Hi,

 Thanks for the reply.
I added your case to our task and we will try to fix it as soon as possible.
You receive 500 Telerik points as a reward for your assistance.
Thank you.

All the best,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Tags
Code Analysis
Asked by
bradhh
Top achievements
Rank 2
Answers by
Zdravko
Telerik team
bradhh
Top achievements
Rank 2
Share this question
or