[Mono-bugs] [Bug 339392] New: use of unassigned local variable not detected

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 5 17:50:04 EST 2007


           Summary: use of unassigned local variable not detected
           Product: Mono: Compilers
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: theo at crazygreek.co.uk
         QAContact: mono-bugs at ximian.com
          Found By: ---

This should fail with "use of unassigned local variable 'c'", but doesn't.

  class Test

    static bool Something()
      return false;

    static bool Moo(out Test c)
      c = null;
      return false;

    static void Main(string[] args)
      Test c;
      if (Something() != true && Moo(out c))
        // something
      Console.WriteLine("{0}", c.ToString());


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list