[Issue 8442] [2.060 beta] Empty array enum not treated as immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 28 09:40:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8442
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |D1 & D2
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2012-07-28 09:40:19 PDT ---
D1 has similar problem.
const int[] fooEnum1 = [1];
const int[] fooEnum0 = [];
void main()
{
const int[1] fooImmutable1 = fooEnum1; // OK
const int[0] fooImmutable0 = fooEnum0; // Error
// test.d(2): Error: cannot implicitly convert expression ([]) of type
int[] to int[0u]
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list