Skip to content

Commit

Permalink
fix Issue 14528 - can't pass protected member to template by alias
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jun 9, 2015
1 parent b9e0b51 commit 1a92380
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/compilable/imports/a14528.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module imports.a14528;

void foo(alias f)()
{
f();
}
14 changes: 14 additions & 0 deletions test/compilable/test14528.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// REQUIRED_ARGS: -o-
// PERMTE_ARGS:

import imports.a14528;

class C
{
protected static void func() {}

void test()
{
foo!func();
}
}

0 comments on commit 1a92380

Please sign in to comment.