[nem-bug] [Nemerle 0000728]: "Duplicate parameter name" with new
lambda syntax
feedback at nemerle.org
feedback at nemerle.org
Sun Aug 6 15:07:42 CEST 2006
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=728>
======================================================================
Reported By: OysterDva
Assigned To: nazgul
======================================================================
Project: Nemerle
Issue ID: 728
Category: Compiler (parser/macros engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 08-05-2006 16:26 CEST
Last Modified: 08-06-2006 15:07 CEST
======================================================================
Summary: "Duplicate parameter name" with new lambda syntax
Description:
The following code not compiles on version from trunk:
def x = (_, _, n) => n;
The error message is "duplicate parameter name: _N_u1124" so it seems like
compiler generates the same name for both skipped function parameters and
this is wrong, of course. Btw, old lambda syntax works normally in such
situation so this will compile:
def x = fun(_, _, n) { n };
======================================================================
----------------------------------------------------------------------
nazgul - 08-06-06 15:07
----------------------------------------------------------------------
Fixed on trunk (r6486)
Issue History
Date Modified Username Field Change
======================================================================
08-05-06 16:26 OysterDva New Issue
08-06-06 15:07 nazgul Status new => resolved
08-06-06 15:07 nazgul Resolution open => fixed
08-06-06 15:07 nazgul Assigned To => nazgul
08-06-06 15:07 nazgul Note Added: 0001396
======================================================================
More information about the bugs
mailing list