Bug 4259 – Header generation omits leading '@' for properties
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2010-06-01T12:22:00Z
Last change time
2015-06-09T01:27:41Z
Assigned to
nobody
Creator
sean
Comments
Comment #0 by sean — 2010-06-01T12:22:55Z
The test file:
class C { @property int get() { return 0; } }
void main() {}
Generates the header:
// D import file generated from 'hdrgen.d'
class C
{
property
{
int get()
{
return 0;
}
}
}
void main()
{
}
With the '@' missing the header is invalid. This is currently blocking the use of these attributes in druntime. I've attached a patch that fixes the issue, but there's likely a better way to do it.