[nem-bug] [Nemerle 0000718]: Create delegate for local function

feedback at nemerle.org feedback at nemerle.org
Fri Jul 14 03:03:30 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=718> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   718
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             07-14-2006 03:03 CEST
Last Modified:              07-14-2006 03:03 CEST
======================================================================
Summary:                    Create delegate for local function
Description: 
public Sort[T, Val] (this sourse : array [T], getComparableValue : T ->
Val) : array [T]
  where Val: System.IComparable[Val]
{
  def Cmp(x : T, y : T) : int
  {
    getComparableValue(x).CompareTo(getComparableValue(y))
  }
  System.Array.Sort.[T](sourse, System.Comparison.[T](Cmp));
  sourse
}

narray.n(460,37,460,58): error : Internal compiler error

======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-14-06 03:03 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list