Skip to content

Commit

Permalink
Add test case for 5962.
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jun 30, 2011
1 parent c737d2a commit 031bdab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/runnable/bug5962.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 5962

struct S
{
auto g()(){ return 1; }
const auto g()(){ return 2; }
}
void main()
{
auto ms = S();
assert(ms.g() == 1);
auto cs = const(S)();
assert(cs.g() == 2);
}

0 comments on commit 031bdab

Please sign in to comment.