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

Incorrect var-type detection (nullable type)

1 Answer 54 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.
Jerremy
Top achievements
Rank 1
Jerremy asked on 26 Nov 2009, 12:08 PM
Just noticed a small error in the detection of the var-type, here's a code snippet which reproduces the problem:

var d1 = (double?)1; 
var d2 = (double?)null
var result = d1 * d2; 
 
// This is the error, result is a double? yet justcode will say it  
// doesnt have the HasValue property 
if (result.HasValue) 

1 Answer, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 26 Nov 2009, 04:20 PM
Hello Jerremy,

Thank you for reporting this issue. We have logged it for fixing. As soon as we have a fix we will contact you back.

You have been granted 500 Telerik points :) .

Kind regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Code Analysis
Asked by
Jerremy
Top achievements
Rank 1
Answers by
Deyan Varchev
Telerik team
Share this question
or