[nem-bug] [Nemerle 0000688]: Can't cast array of reference type to covariant subtype

feedback at nemerle.org feedback at nemerle.org
Mon Dec 4 13:42:38 CET 2006


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=688> 
======================================================================
Reported By:                VladD2
Assigned To:                malekith
======================================================================
Project:                    Nemerle
Issue ID:                   688
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             05-31-2006 15:00 CEST
Last Modified:              12-04-2006 13:42 CET
======================================================================
Summary:                    Can't cast array of reference type to covariant
subtype
Description: 
using System.Console;

def a1 = array["qq", "aa"];
def a2 = a1 :> array[object];

WriteLine(a2.GetType());

20-1-Gener.n:6:10:6:21: error: cannot convert array [string] to array
[System.Object]


======================================================================

----------------------------------------------------------------------
 malekith - 12-04-06 13:42 
----------------------------------------------------------------------
Resolved on trunk, r7043.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
05-31-06 15:00 VladD2         New Issue                                    
12-04-06 13:42 malekith       Status                   new => resolved     
12-04-06 13:42 malekith       Resolution               open => fixed       
12-04-06 13:42 malekith       Assigned To               => malekith        
12-04-06 13:42 malekith       Note Added: 0001554                          
======================================================================




More information about the bugs mailing list