[nem-bug] [Nemerle 0000556]: function types cannot be treated as
objects
feedback at nemerle.org
feedback at nemerle.org
Thu Jan 26 18:11:45 CET 2006
The following issue has been CLOSED
======================================================================
<http://nemerle.org/bugs/view.php?id=556>
======================================================================
Reported By: nazgul
Assigned To: malekith
======================================================================
Project: Nemerle
Issue ID: 556
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 10-27-2005 20:40 CEST
Last Modified: 01-26-2006 18:11 CET
======================================================================
Summary: function types cannot be treated as objects
Description:
class Test
{
public static Check ['a, 'b] (f : 'a -> 'b) : void
{
def count =
if (f.GetType().BaseType.IsGenericType)
f.GetType
().BaseType.GetGenericTypeDefinition().GetGenericArguments().Length;
else 0;
}
}
Test.Check (fun () { });
======================================================================
----------------------------------------------------------------------
malekith - 11-09-05 15:40
----------------------------------------------------------------------
Resolved on trunk, r5922.
Issue History
Date Modified Username Field Change
======================================================================
10-27-05 20:40 nazgul New Issue
11-06-05 20:32 nazgul Status new => confirmed
11-09-05 15:40 malekith Status confirmed => resolved
11-09-05 15:40 malekith Resolution open => fixed
11-09-05 15:40 malekith Assigned To => malekith
11-09-05 15:40 malekith Note Added: 0001015
11-09-05 15:40 malekith Description Updated
11-09-05 15:40 malekith Additional Information Updated
01-26-06 18:11 nazgul Status resolved => closed
======================================================================
More information about the bugs
mailing list