Skip to content

Commit

Permalink
Issue 6780 - Templated global property functions do not work
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jan 26, 2012
1 parent 1d4438f commit a08a5bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/runnable/template9.d
Expand Up @@ -538,6 +538,23 @@ void test6738()
assert(foo.get() == 10);
}

/**********************************/
// 6780

@property int foo6780()(){ return 10; }

int g6780;
@property void bar6780()(int n){ g6780 = n; }

void test6780()
{
auto n = foo6780;
assert(n == 10);

bar6780 = 10;
assert(g6780 == 10);
}

/**********************************/
// 6994

Expand Down Expand Up @@ -795,6 +812,7 @@ int main()
test6208a();
test6208b();
test6738();
test6780();
test6994();
test3467();
test4413();
Expand Down

0 comments on commit a08a5bb

Please sign in to comment.