← Back to index
|
Original Bugzilla link
Bug 7672 – Remove top const doesn't work for inout array type.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-08T08:23:00Z
Last change time
2012-03-11T15:17:01Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2012-03-08T08:23:41Z
T foo(T)(T a){ return a; } void test(inout(int[]) a = null) { static assert(is( typeof( a ) == inout(int[]) )); // OK static assert(is( typeof(foo(a)) == inout(int)[] )); // NG // Error: static assert (is(typeof(__error) == inout(int)[])) is false }
Comment #1
by k.hara.pg — 2012-03-11T06:59:24Z
https://github.com/D-Programming-Language/dmd/pull/800