[Nemerle 0001110]: Overload resolution failed if actual argument list can be converted to tuple

1 view
Skip to first unread message

feed...@nemerle.org

unread,
Dec 22, 2008, 6:29:11 AM12/22/08
to nemerl...@googlegroups.com

The following issue has been ASSIGNED.
======================================================================
<http://nemerle.org/bugs/view.php?id=1110>
======================================================================
Reported By: desco
Assigned To: VladD2
======================================================================
Project: Nemerle
Issue ID: 1110
Category: Compiler
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 05-05-2008 18:17 CEST
Last Modified: 12-22-2008 12:29 CET
======================================================================
Summary: Overload resolution failed if actual argument list
can be converted to tuple
Description:
Code below is failed to compile
using System.Console;

module Program
{
Run[T](_ : T) : void
{
WriteLine("one:" + typeof(T).ToString());
}

Run[T](params _ : array[T]) : void
{
WriteLine("params")
}

Main() : void
{
Run(1, 2);
}
}

D:\_Files\Nemerle\bin\Debug>ncc Test.n
Test.n:17:3:17:6:
&http://nemerle.org/bugs/view.php?id=8592;[01;31merror&http://nemerle.org/bugs/view.php?id=8592;[0m:
wrong number of
parameters in call, needed
1, got 2 (in 'Run((parm: _N_u1665 : T.925)) : void')
confused by earlier errors bailing out
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
05-05-08 18:17 desco New Issue
05-05-08 18:17 desco Issue Monitored: desco
12-22-08 12:29 VladD2 Status new => assigned
12-22-08 12:29 VladD2 Assigned To => VladD2
======================================================================

Reply all
Reply to author
Forward
0 new messages