[nem-bug] [Nemerle 0000556]: function types cannot be treated as objects

feedback at nemerle.org feedback at nemerle.org
Wed Nov 9 15:40:41 CET 2005


The following issue has been RESOLVED.
======================================================================
<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:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-27-2005 20:40 CEST
Last Modified:              11-09-2005 15:40 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                          
======================================================================




More information about the bugs mailing list