← Back to index
|
Original Bugzilla link
Bug 1682 – invariant(T)[] should be convertible to ref const(T)[]
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-11-21T13:19:00Z
Last change time
2015-06-09T01:14:22Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrei
Comments
Comment #0
by andrei — 2007-11-21T13:19:54Z
void fun(ref const(int)[] arg) { } void main() { invariant int[] a = [ 1 ]; fun(a); }