[nem-bug] [Nemerle 0000556]: function types cannot be treated as
objects
feedback at nemerle.org
feedback at nemerle.org
Thu Oct 27 20:40:49 CEST 2005
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=556>
======================================================================
Reported By: nazgul
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 556
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 10-27-2005 20:40 CEST
Last Modified: 10-27-2005 20:40 CEST
======================================================================
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 () { });
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
10-27-05 20:40 nazgul New Issue
======================================================================
More information about the bugs
mailing list