fix Issue 14528 - can't pass protected member to template by alias

This commit is contained in:
k-hara 2015-06-09 21:07:53 +09:00
parent b9e0b517ba
commit 1a92380f5a
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,6 @@
module imports.a14528;
void foo(alias f)()
{
f();
}

View file

@ -0,0 +1,14 @@
// REQUIRED_ARGS: -o-
// PERMTE_ARGS:
import imports.a14528;
class C
{
protected static void func() {}
void test()
{
foo!func();
}
}