[nem-bug] [Nemerle 0000794]: Imperative return + option = crash

feedback at nemerle.org feedback at nemerle.org
Sat Nov 25 22:44:22 CET 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=794> 
======================================================================
Reported By:                nazgul
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   794
Category:                   Compiler (type engine)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             11-25-2006 22:44 CET
Last Modified:              11-25-2006 22:44 CET
======================================================================
Summary:                    Imperative return + option = crash
Description: 
def x = [1,2,3,4];

def foo (l : list[int]) {
  foreach (y in l)
    when (y % 2 == 0)
      Nemerle.Imperative.Return (Some (y));
  None ();
}

System.Console.WriteLine (foo (x));
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
11-25-06 22:44 nazgul         New Issue                                    
======================================================================




More information about the bugs mailing list