Bug 1823 – Implicit conversion to const on associative array

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-02-09T04:10:00Z
Last change time
2015-06-09T01:14:30Z
Assigned to
bugzilla
Creator
yann.garniron

Comments

Comment #0 by yann.garniron — 2008-02-09T04:10:41Z
"Mutable and invariant types can be implicitly converted to const." int[int] array; const(int[int]) a = array; outputs: cannot implicitly convert expression (array) of type int[int] to const(int[int]) int[int] array; const(int[int]) a = cast(const)array; Compiles OK.
Comment #1 by bugzilla — 2008-03-07T00:28:41Z
Fixed dmd 2.012