Incorrect var-type detection (nullable type)

Thread is closed for posting
2 posts, 0 answers
  1. Jerremy
    Jerremy avatar
    9 posts
    Member since:
    Apr 2009

    Posted 26 Nov 2009 Link to this post

    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) 

  2. Deyan Varchev
    Deyan Varchev avatar
    150 posts

    Posted 26 Nov 2009 Link to this post

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