blob: 6b3be9d814cbbd74f8bfa4e2d6cd9fdafeda301a [file] [log] [blame]
// EXTRA_SOURCES: imports/a21a.d
// PERMUTE_ARGS:
import std.stdio;
import imports.a21a;
template BadMixin()
{
int badFunc()
{
printf("badFunc\n");
return 2;
}
}
int main()
{
int i;
auto x = new SomeClass;
i = x.goodFunc();
assert(i == 1);
i = x.badFunc();
assert(i == 2);
return 0;
}