-
-
Notifications
You must be signed in to change notification settings - Fork 593
/
header2.di
133 lines (133 loc) · 1.7 KB
/
header2.di
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
class C
{
}
void foo(const C c, const(char)[] s, const int* q, const(int*) p);
void bar(in void* p);
void f(void function() f2);
class C2;
void foo2(const C2 c);
struct Foo3
{
int k;
@trusted @nogc @disable ~this();
this(this);
}
class C3
{
@property int get();
}
T foo3(T)()
{
}
struct S4A(T)
{
T x;
@safe ~this()
{
}
}
struct S4B(T) if (1)
{
T x;
}
union U4A(T)
{
T x;
}
union U4B(T) if (2 * 4 == 8)
{
T x;
}
class C4A(T)
{
T x;
}
class C4B(T) if (true)
{
T x;
}
class C4C(T) if (!false) : C4A!int
{
T x;
}
class C4D(T) if (!false) : C4B!long, C4C!(int[])
{
T x;
}
interface I4(T) if ((int[1]).length == 1)
{
T x;
}
template MyClass4(T) if (is(typeof(T.subtype)))
{
alias HelperSymbol = T.subtype;
class MyClass4
{
}
}
enum isInt(T) = is(T == int);
enum bool isString(T) = is(T == string);
static immutable typeName(T) = T.stringof;
int storageFor(T) = 0;
enum int templateVariableFoo(T) = T.stringof.length;
template templateVariableBar(T) if (is(T == int))
{
enum int templateVariableBar = T.stringof.length;
}
auto flit = 3 / 2.00000;
void foo11217()(const int[] arr)
{
}
void foo11217()(immutable int[] arr)
{
}
void foo11217()(ref int[] arr)
{
}
void foo11217()(lazy int[] arr)
{
}
void foo11217()(auto ref int[] arr)
{
}
void foo11217()(scope int[] arr)
{
}
void foo11217()(in int[] arr)
{
}
void foo11217()(inout int[] arr)
{
}
void test13275();
align (1) struct S9766
{
align (true ? 2 : 3)
{
int var1;
align int var2;
}
}
void leFoo()()
{
sign = a == 2 ? false : (y < 0) ^ sign;
sign = a == 2 ? false : sign ^ (y < 0);
sign = 2 + 3 | 7 + 5;
}
interface LeInterface
{
}
class LeClass
{
this()
{
auto foo = new class LeInterface
{
}
;
}
}
const levar = new class LeClass, LeInterface
{
}
;