https://bugzilla.novell.com/show_bug.cgi?id=336258

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=336258#c3


Michał Ziemski <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #3 from Michał Ziemski <[EMAIL PROTECTED]>  2008-02-22 03:17:13 MST 
---
Another test case to illustrate that the issue affects also "asigned" status of
a variable.

The code:
public static class Foo
{
    delegate void Simple();

    static void Bar(Simple s)
    {
        s();
    }

    public static void Main(string[] args)
    {
        Bar(delegate() {

          int i, j = 1;
          switch(j)
          {
              case 1: i = 1; break;
              default: i = 2; break;
          }
          System.Console.WriteLine("a" + i);
        });
    }
}

Yields (Mono 1.9 preview 3 GMCS):
bb.cs(19,42): error CS0165: Use of unassigned local variable `i'
rather than clean compile.


-- 
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