https://bugzilla.novell.com/show_bug.cgi?id=445300
Summary: Confusing compiler that doesn't match MS.NET regarding
out params recursively
Product: Mono: Compilers
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
public class Programa
{
static void Jajaja (out int mengano)
{
mengano = 3;
}
static void Run(out int mengano)
{
Jajaja (mengano);
}
static void Main(string[] args)
{
int fulano;
Run(out fulano);
Console.WriteLine(fulano);
}
}
csc returns:
Error 1 The best overloaded method match for
'ConsoleApplication1.Program.Jajaja(out int)' has some invalid arguments
Error 2 Argument '1' must be passed with the 'out' keyword
gmcs returns:
"Use of unassigned out parameter `mengano'(CS0269)"
--
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