summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail96.d
blob: 1bdc8417b6fc473d2ddb41f69621996db0686b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
TEST_OUTPUT:
---
fail_compilation/fail96.d(21): Error: template instance foo!long foo is not a template declaration, it is a function alias
---
*/

// 153

template bar(T)
{
    void foo() {}
}

alias bar!(long).foo foo;
alias bar!(char).foo foo;


void main()
{
    foo!(long);
}