This class subclasses one type with different arguments

4 posts, 0 answers
  1. bradhh
    bradhh avatar
    25 posts
    Member since:
    Feb 2007

    Posted 12 Dec 2012 Link to this post

    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
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Dec 2012 Link to this post

    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.
  3. DevCraft banner
  4. bradhh
    bradhh avatar
    25 posts
    Member since:
    Feb 2007

    Posted 14 Dec 2012 Link to this post

    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
  5. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 17 Dec 2012 Link to this post

    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.
Back to Top