[Mono-list] Compilation Issue

Michael Foord fuzzyman at gmail.com
Wed May 6 11:07:57 EDT 2009


Hello guys,

This code doesn't compile (using Mono 2.4 and MonoDevelop 2.0 on OS X):

using System;

namespace test
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            string Something;
            string fish = "hello";

            if ((Something = fish) != "hello"){
                Console.WriteLine("Hello World!");
            }
        }
    }
}


It reports the error "The variable `Something' is assigned but its value is
never used(CS0219)".

This problem is stopping me compiling IronPython for Mono 2.4.

Is this a known issue, a real issue, and should I raise a bug report for it?

All the best,

Michael Foord

-- 
http://www.ironpythoninaction.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090506/aae12d54/attachment-0001.html 


More information about the Mono-list mailing list