https://bugzilla.novell.com/show_bug.cgi?id=339392
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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs