[nem-bug] [Nemerle 0000813]: Array cast fail
feedback at nemerle.org
feedback at nemerle.org
Sat Dec 23 06:12:08 CET 2006
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=813>
======================================================================
Reported By: VladD2
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 813
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 12-23-2006 06:12 CET
Last Modified: 12-23-2006 06:12 CET
======================================================================
Summary: Array cast fail
Description:
This code cause error during compilation:
----------------------------------------------------
using System.Collections.Generic;
def x = array["1", "2"];
def y : IList[IEnumerable[char]] = x;
_ = y;
----------------------------------------------------
array[string] implement:
IList[string]
IList[object]
IList[ICloneable]
IList[IConvertible]
IList[IEquatable[string]]
IList[IEnumerable]
IList[IEnumerable[char]]
IList[IComparable]
IList[IComparable[string]]
ICloneable
ECMA-334:
In addition, if there is an implicit reference conversion from S to T
then
S[] implements IList<T> and there is an implicit reference conversion from
S[] to IList<T> and its base interfaces.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
12-23-06 06:12 VladD2 New Issue
======================================================================
More information about the bugs
mailing list