[Mono-list] Non standard behaviour

Jonathan Stowe gellyfish@gellyfish.com
Sun, 7 Apr 2002 08:55:52 +0100 (BST)


This compiles and runs:

class Values
{
    static void Main()
    {
        int myInt ;
        System.Console.WriteLine("Initialized: myInt: {0}", myInt);
        myInt = 5;
        System.Console.WriteLine("Initialized: myInt: {0}", myInt);
    }

}


Whereas I believe it should fail to compile with "Use of unassigned local
variable".

/J\
-- 
Jonathan Stowe                      |
<http://www.gellyfish.com>          |      This space for rent
                                    |