mirror of
https://github.com/dlang/dmd.git
synced 2025-04-29 06:30:10 +03:00
fix Issue 14528 - can't pass protected member to template by alias
This commit is contained in:
parent
b9e0b517ba
commit
1a92380f5a
2 changed files with 20 additions and 0 deletions
6
test/compilable/imports/a14528.d
Normal file
6
test/compilable/imports/a14528.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
module imports.a14528;
|
||||
|
||||
void foo(alias f)()
|
||||
{
|
||||
f();
|
||||
}
|
14
test/compilable/test14528.d
Normal file
14
test/compilable/test14528.d
Normal file
|
@ -0,0 +1,14 @@
|
|||
// REQUIRED_ARGS: -o-
|
||||
// PERMTE_ARGS:
|
||||
|
||||
import imports.a14528;
|
||||
|
||||
class C
|
||||
{
|
||||
protected static void func() {}
|
||||
|
||||
void test()
|
||||
{
|
||||
foo!func();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue