D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6780 - Templated global property functions do not work
Summary: Templated global property functions do not work
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2011-10-07 10:39 UTC by Kenji Hara
Modified: 2012-02-08 03:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2011-10-07 10:39:32 UTC
@property int foo()(){ return 10; }

int g;
@property void bar()(int n){ g = n; }

void main()
{
    auto n = foo;
    assert(n == 10);

    bar = 10;
    assert(g == 10);
}
Comment 2 github-bugzilla 2012-01-26 12:06:27 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a08a5bb9394c3b46e3cca6bee1c90922bc0e9da2
Issue 6780 - Templated global property functions do not work
Comment 3 Andrej Mitrovic 2012-02-08 03:30:16 UTC
This seems to contradict Issue 3204?