[nem-bug] [Nemerle 0000635]: When _ + _ is used inside a @+
definition, the wrong + is used.
feedback at nemerle.org
feedback at nemerle.org
Thu Jun 28 22:13:56 CEST 2007
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=635>
======================================================================
Reported By: d
Assigned To: divan
======================================================================
Project: Nemerle
Issue ID: 635
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 03-17-2006 20:11 CET
Last Modified: 06-28-2007 22:13 CEST
======================================================================
Summary: When _ + _ is used inside a @+ definition, the wrong
+ is used.
Description:
using Nemerle.Collections.List;
[Record]
public class T {
public x : list [int];
public y : list [int];
public static @+ (a : T, b : T) : T {
T (Map2 (a.x, b.x, _+_), Map2 (a.y, b.y, _+_))
}
}
/*
test.n:9:8:9:12: error: in argument http://nemerle.org/bugs/view.php?id=3 (f),
needed a (int * int) ->
System.Object+, got (T+ * T+) -> T-: the types (int * int) and (int * T+)
are not compatible [simple unify]
test.n:9:8:9:12: error: typing error in call
test.n:9:30:9:34: error: in argument http://nemerle.org/bugs/view.php?id=3 (f),
needed a (int * int) ->
System.Object+, got (T+ * T+) -> T-: the types (int * int) and (int * T+)
are not compatible [simple unify]
test.n:9:30:9:34: error: typing error in call
*/
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001026 user-defined operators break type-infer...
======================================================================
----------------------------------------------------------------------
nazgul - 05-04-06 21:24
----------------------------------------------------------------------
This only happens with delayed typing. If the types of parameters are known
from the start, then it works fine.
----------------------------------------------------------------------
divan - 06-28-07 22:13
----------------------------------------------------------------------
Fixed on r7720.
Issue History
Date Modified Username Field Change
======================================================================
03-17-06 20:11 d New Issue
05-04-06 21:24 nazgul Note Added: 0001229
05-05-06 13:27 malekith Status new => assigned
05-05-06 13:27 malekith Assigned To => malekith
06-27-07 14:33 divan Issue Monitored: divan
06-27-07 14:45 divan Relationship added related to 0001026
06-28-07 22:13 divan Note Added: 0001925
06-28-07 22:13 divan Assigned To malekith => divan
06-28-07 22:13 divan Status assigned => resolved
06-28-07 22:13 divan Resolution open => fixed
06-28-07 22:13 divan Description Updated
======================================================================
More information about the bugs
mailing list