blob: 28ffc8d48d5b6222ada7d74a8dc56bf2974df65b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
TEST_OUTPUT:
---
fail_compilation/diag1566.d(23): Error: multiple ! arguments are not allowed
fail_compilation/diag1566.d(24): Error: multiple ! arguments are not allowed
fail_compilation/diag1566.d(25): Error: multiple ! arguments are not allowed
fail_compilation/diag1566.d(26): Error: multiple ! arguments are not allowed
fail_compilation/diag1566.d(28): Error: multiple ! arguments are not allowed
fail_compilation/diag1566.d(29): Error: multiple ! arguments are not allowed
---
*/
template T(int n)
{
template T(char c)
{
alias long T;
}
}
void main()
{
static assert(is(long == T!(3)!('b')));
static assert(is(long == T! 3 ! 'b' ));
static assert(is(long == T!(3)! 'b' ));
static assert(is(long == T! 3 !('b')));
static assert(is(long == T!(3)! 'b' !"s"));
static assert(is(long == T! 3 !('b')!"s"));
}
|