https://bugzilla.novell.com/show_bug.cgi?id=334258
Summary: [GMCS] CS0177 not reported for generic out arguments
that are not assigned
Product: Mono: Compilers
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
gmcs currently does not report CS0177 when a generic out argument is not
assigned.
To reproduce, compile the following code snippet:
using System.Collections.Generic;
class Test
{
static bool TryAction<T> (out T output)
{
return false;
}
static void Main ()
{
Test value;
TryAction<Test> (out value);
}
}
Expected result:
test.cs(7,3): error CS0177: The out parameter 'output' must be assigned to
before control leaves the current method
Actual result:
Successful compilation.
--
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