https://bugzilla.novell.com/show_bug.cgi?id=324996#c3


Gert Driesen <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #3 from Gert Driesen <[EMAIL PROTECTED]>  2007-11-09 15:55:07 MST 
---
Marek, you're wrong about this. A nullable int is of course not always an int.

Try compiling and running the following code:

using System;

class Program
{
        static void Main ()
        {
                int? i = null;
                if (i is int) {
                        Console.WriteLine ((int) i + 3);
                }
        }
}

When compiled with gmcs, this results in an InvalidOperationException (Nullable
object must have a value), while it should not.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to