← Back to index
|
Original Bugzilla link
Bug 3148 – syntax error using invariant
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-07-07T01:11:00Z
Last change time
2015-06-09T01:31:17Z
Assigned to
andrei
Creator
ddparnell
Comments
Comment #0
by ddparnell — 2009-07-07T01:11:17Z
In std/outbuffer.d the class OutBuffer is missing the "()" after the "invariant" keyword. Patch ... --- c:/temp/d/std/outbuffer.d Sun Jul 5 01:19:02 2009 +++ c:/temp/d/std/outbuffer.dx Tue Jul 7 18:07:09 2009 @@ -39,7 +39,7 @@ ubyte data[]; uint offset; - invariant + invariant() { //printf("this = %p, offset = %x, data.length = %u\n", this, offset, data.length); assert(offset <= data.length);
Comment #1
by andrei — 2009-08-27T23:48:00Z
Thanks!