[Issue 7313] the result of a 'new' expression should implicitly cast to (im)mutable
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 7 15:24:16 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=7313
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ag0aep6g at gmail.com
Resolution|--- |WORKSFORME
--- Comment #3 from ag0aep6g at gmail.com ---
(In reply to timon.gehr from comment #0)
> the following code should compile:
> void main(){
> immutable a = new int[1];
> int[] b = new immutable(int)[1];
> }
Works now (dmd 2.075) and has been working for a while. Closing as WORKSFORME.
--
More information about the Digitalmars-d-bugs
mailing list