[nem-bug] [Nemerle 0001038]: returning tuple from block cases error
feedback at nemerle.org
feedback at nemerle.org
Fri Oct 19 18:46:15 CEST 2007
A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=1038>
======================================================================
Reported By: Denis
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 1038
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 08-09-2007 11:57 CEST
Last Modified: 10-19-2007 18:46 CEST
======================================================================
Summary: returning tuple from block cases error
Description:
this code produces error in latest compiler
========================
def (_a, _b) = result:
{
result((1, 2))
}
=========================
bug.n:3:5:3:11: error: goto (block return?) is not allowed inside
expressions
======================================================================
----------------------------------------------------------------------
Denis - 08-09-07 11:59
----------------------------------------------------------------------
Added to wrong category
----------------------------------------------------------------------
divan - 10-19-07 18:46
----------------------------------------------------------------------
It's not returning tuple but decomposing it to _a and _b
Code is transformed to match("block")
Workaround is of course to
def _ab = "block";
def (_a, _b) = _ab;
Issue History
Date Modified Username Field Change
======================================================================
08-09-07 11:57 Denis New Issue
08-09-07 11:59 Denis Note Added: 0001940
08-09-07 19:29 divan Category Code Completion Engine =>
Compiler (type engine)
08-09-07 19:29 divan Description Updated
10-15-07 19:23 divan Issue Monitored: divan
10-19-07 18:46 divan Note Added: 0001969
======================================================================
More information about the bugs
mailing list