D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11056 - synchronized methods are marked shared in ddoc output
Summary: synchronized methods are marked shared in ddoc output
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ddoc
Depends on:
Blocks:
 
Reported: 2013-09-17 04:48 UTC by Andrej Mitrovic
Modified: 2020-07-04 17:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2013-09-17 04:48:28 UTC
-----
module test;

///
class C
{
    ///
    synchronized void f() { }
}

void main() { }
-----

$ dmd -D -o- -c -test.d
$ type test.html
> <dl><dt><big><a name="C.f"></a>shared void <u>f</u>();
Comment 1 basile-z 2020-07-04 17:01:10 UTC
module test;

///
class C
{
    ///
    synchronized void f() { }
    pragma(msg, __traits(getFunctionAttributes, C.f));
}

void main() { }

gives

> tuple("shared", "@system")