[nem-bug] [Nemerle 0000981]: Typer3.EmitDelegateCtor produces
invalid code for delegates with single tuple parameter
feedback at nemerle.org
feedback at nemerle.org
Thu Mar 29 03:14:15 CEST 2007
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=981>
======================================================================
Reported By: aleksey
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 981
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 03-29-2007 03:14 CEST
Last Modified: 03-29-2007 03:14 CEST
======================================================================
Summary: Typer3.EmitDelegateCtor produces invalid code for
delegates with single tuple parameter
Description:
Minimal code which reproduces the problem:
def l = System.Collections.Generic.List();
l.Add((1, "aaa"));
_ = l.Find((n, _) => n == 1) // AccessViolationException
Another example:
module Program
{
stuff(x : int, _s : string) : bool { x == 1 }
Main() : void
{
def lis = System.Collections.Generic.List();
lis.Add((1, "one"));
def el = lis.Find(stuff);
}
}
After having a closer look at Typer3.EmitDelegateCtor and friends I think
it's not very hard to fix this. I'll try to do it this weekend, unless it
will not get fixed before that. :)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
03-29-07 03:14 aleksey New Issue
======================================================================
More information about the bugs
mailing list