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

feedback at nemerle.org feedback at nemerle.org
Mon Nov 27 13:48:10 CET 2006


A NOTE has been added to this issue.
======================================================================
<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-27-2006 13:48 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));
======================================================================

----------------------------------------------------------------------
 malekith - 11-27-06 13:09 
----------------------------------------------------------------------
For some reason there are two different option types here.

----------------------------------------------------------------------
 malekith - 11-27-06 13:48 
----------------------------------------------------------------------
Pff... it was Some and None -- buggy StripGenericMark. So the problem is
elsewhere.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
11-25-06 22:44 nazgul         New Issue                                    
11-27-06 13:09 malekith       Note Added: 0001526                          
11-27-06 13:48 malekith       Note Added: 0001527                          
======================================================================




More information about the bugs mailing list