[Issue 7313] New: the result of a 'new' expression should implicitly cast to (im)mutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 18 11:20:40 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7313
Summary: the result of a 'new' expression should implicitly
cast to (im)mutable
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-01-18 11:20:40 PST ---
the following code should compile:
void main(){
immutable a = new int[1];
int[] b = new immutable(int)[1];
}
--
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