Skip to content

Commit

Permalink
Move issue 10101 test case to compilable/testfwdref.d
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Mar 29, 2015
1 parent 38996d3 commit e56015d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/compilable/fwdref10101.d

This file was deleted.

27 changes: 27 additions & 0 deletions test/compilable/testfwdref.d
Expand Up @@ -119,6 +119,33 @@ struct S10015(T) { alias X = int; }
alias Y10015 = s10015.X;
S10015!int s10015;

/***************************************************/
// 10101

int front10101(int);

mixin template reflectRange10101()
{
static if (is(typeof(this.front10101)))
{
int x;
}
}

struct S10101(R)
{
R r_;

typeof(r_.front10101) front10101() @property { return r_.front10101; }

mixin reflectRange10101;
}

void test10101()
{
S10101!(int) s;
}

/***************************************************/
// 12152

Expand Down

0 comments on commit e56015d

Please sign in to comment.