4259 – Header generation omits leading '@' for properties

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4259 - Header generation omits leading '@' for properties
Summary: Header generation omits leading '@' for properties
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P2 blocker
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
Reported: 2010年06月01日 12:22 UTC by Sean Kelly
Modified: 2015年06月09日 01:27 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Sean Kelly 2010年06月01日 12:22:55 UTC
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.
Comment 1 Walter Bright 2010年06月01日 22:36:26 UTC
http://www.dsource.org/projects/dmd/changeset/513 


AltStyle によって変換されたページ (->オリジナル) /