blob: 07d496311fd7a2c984599a0973afcb599e6fb4e9 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
TEST_OUTPUT:
---
fail_compilation/ice14642.d(47): Error: undefined identifier `errorValue`
fail_compilation/ice14642.d(23): Error: template instance ice14642.X.NA!() error instantiating
---
*/
alias TypeTuple(T...) = T;
struct X
{
static struct NA()
{
X x;
void check()
{
x.func();
}
}
alias na = NA!();
auto func()
{
Y* p;
p.func();
}
}
struct Y
{
mixin Mix;
}
template Mix()
{
void func()
{
auto z = Z(null);
}
}
struct Type(size_t v) {}
enum errVal = errorValue;
struct Z
{
Type!errVal v;
}
|