[nem-bug] [Nemerle 0000635]: When _ + _ is used inside a @+
definition, the wrong + is used.
feedback at nemerle.org
feedback at nemerle.org
Fri Mar 17 20:11:25 CET 2006
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=635>
======================================================================
Reported By: d
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 635
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 03-17-2006 20:11 CET
Last Modified: 03-17-2006 20:11 CET
======================================================================
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
*/
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
03-17-06 20:11 d New Issue
======================================================================
More information about the bugs
mailing list