[nem-bug] [Nemerle 0000843]: Incorrect compilation of generic lambda
feedback at nemerle.org
feedback at nemerle.org
Sat Jan 27 15:30:01 CET 2007
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=843>
======================================================================
Reported By: VladD2
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 843
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 01-27-2007 15:30 CET
Last Modified: 01-27-2007 15:30 CET
======================================================================
Summary: Incorrect compilation of generic lambda
Description:
using System;
using System.Console;
def cmp = fun[T](x : T, y : T) where T: IComparable[T] { x.CompareTo(y)
};
WriteLine(cmp("1", "02"));
WriteLine(cmp(1, 2)); // Error: in argument
http://nemerle.org/bugs/view.php?id=1 of cmp, needed a
string, got int
WriteLine(cmp(1.8, 2.0)); // Error: in argument
http://nemerle.org/bugs/view.php?id=1 of cmp, needed a
string, got System.Double
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-27-07 15:30 VladD2 New Issue
======================================================================
More information about the bugs
mailing list