"Cast not required" warning

4 posts, 0 answers
  1. Kias
    Kias avatar
    5 posts
    Member since:
    Aug 2010

    Posted 15 Mar 2011 Link to this post

    Just noticed an odd behaviour with JustCode.

    I was looking through my warnings in the JustCode Errors pane and noticed the error: "C#: This cast is not required". I then went to the code and noticed that it was an enum declaration and hence there was no casting going on... See attached. My assumption is that it's got a problem with how Enums handle casting internally but even if it's not the case it's definitely a bug.

    I am posting this error here because for some reason I am unable to use Issue Tracker to log this bug (assumption: haven't got a support licence). Not sure that it's worth the effort to report bugs via a forum...

    If there is somewhere to report the bug please let me know.

    Cheers
  2. Kias
    Kias avatar
    5 posts
    Member since:
    Aug 2010

    Posted 15 Mar 2011 Link to this post

    Just another related issue

    If you have something like

    public enum MyEnum { Value1, Value2, Value3 }

    If you right click on, say, Value2 and then click on "Go To Definition" then it will take you to the first usage of that value.
  3. DevCraft banner
  4. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 16 Mar 2011 Link to this post

    Hello Kias,

    Thank you for your feedback.

    The redundant cast warning for enum members is a bug that is already fixed. The fix will be included in the official release that will be released later today. Sorry for the inconvenience.

    The second issue is actually a feature. If you are on a declaration Go To Definition does Find Extended Usages. Note that we have an option "Go to usages: navigate directly to single result". You can find it in JustCode Options | Navigation | General, so if this is checked and you have a single usage this behaviour is expected.

    If you have any other problems or suggestions, please don't hesitate to write back.

    All the best,
    Svetlozar Angelov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Kias
    Kias avatar
    5 posts
    Member since:
    Aug 2010

    Posted 16 Mar 2011 Link to this post

    Okay thank you
Back to Top