Skip to content

Commit

Permalink
Move issue 9514 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 fdbfd70 commit 53f165e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 45 deletions.
22 changes: 0 additions & 22 deletions test/compilable/fwdref9514a.d

This file was deleted.

22 changes: 0 additions & 22 deletions test/compilable/fwdref9514b.d

This file was deleted.

2 changes: 1 addition & 1 deletion test/compilable/imports/fwdref9514.d
@@ -1,4 +1,4 @@
bool find(alias pred, R)(R range)
bool find9514(alias pred, R)(R range)
{
return true;
}
45 changes: 45 additions & 0 deletions test/compilable/testfwdref.d
Expand Up @@ -66,6 +66,51 @@ class Class8698b : IClass8698b { alias Struct8698b Value; }
void test8698b(Class8698b.Value) { }
interface IRoot8698b {}

/***************************************************/
// 9514

template TStructHelpers9514a()
{
void opEquals(Foo9514a)
{
auto n = FieldNames9514a!();
}
}

struct Foo9514a
{
mixin TStructHelpers9514a!();
}

import imports.fwdref9514 : find9514; // selective import without aliasing

template FieldNames9514a()
{
static if (find9514!`true`([1])) enum int FieldNames9514a = 1;
}

// ----

template TStructHelpers9514b()
{
void opEquals(Foo9514b)
{
auto n = FieldNames9514b!();
}
}

struct Foo9514b
{
mixin TStructHelpers9514b!();
}

import imports.fwdref9514 : foo9514 = find9514; // selective import with aliasing

template FieldNames9514b()
{
static if (foo9514!`true`([1])) enum int FieldNames9514b = 1;
}

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

Expand Down

0 comments on commit 53f165e

Please sign in to comment.