Irritating Code inspection

In a VB solution i have a method with the following code snippet:



"v1" and "v2" are defined of type object. As "d1" and "d2" are declared as date the explicit conversion is perfectly legal for me even if there will be an implicit cast if i had missed the CDate() function.

R# suggest me to join declaration and assignment. If follow the suggestion the redundant cast warning disappears:



Can anyone explain me why R# did this? Or my i have found a bug?

Regards
Klaus

2 comments
Comment actions Permalink

After waiting a week did really no one can answer my question? Even no one from he jetbrains team?

Regards
Klaus

0
Comment actions Permalink

It might help if you actually included the code!

0

Please sign in to leave a comment.