← Back to index
|
Original Bugzilla link
Bug 6861 – Implicitly convert expression. const(immutable(char)[][string][string]) to const(string[string][string])
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2011-10-28T09:19:00Z
Last change time
2012-05-01T23:33:22Z
Keywords
rejects-valid
Assigned to
nobody
Creator
d_lang
Comments
Comment #0
by d_lang — 2011-10-28T09:19:25Z
Code ---- class Homu { const const(string[string][string]) homuhomu() { return homuhomu_; } private: string[string][string] homuhomu_; } ---- Compile error(dmd 2.056) ---- Error: forward reference to type const(string) Error: cannot implicitly convert expression (this.homuhomu_) of type const(immutable(char)[][string][string]) to const(string[string][string]) ----
Comment #1
by lovelydear — 2012-05-01T15:48:27Z
This one compiles and runs fine with 2.059
Comment #2
by k.hara.pg — 2012-05-01T23:33:22Z
Was fixed by
https://github.com/D-Programming-Language/dmd/pull/430
.