[Issue 7355] New: inout incorrectly resolved if the same type has both mutable and immutable parts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 23 16:41:59 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7355
Summary: inout incorrectly resolved if the same type has both
mutable and immutable parts
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
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-23 16:41:58 PST ---
DMD 2.058head
inout(int*)* foo(inout(int*)* x){return x;}
immutable(int)** x;
static assert(is(typeof(foo(x))==const(int*)*));
Error: static assert (is(typeof(foo((__error))) == const(int*)*)) is false
The assertion should pass.
--
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