[Mono-bugs] [Bug 334258] New: [GMCS] CS0177 not reported for generic out arguments that are not assigned
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 16 08:37:58 EDT 2007
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: rharinath at novell.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list