-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse.d
More file actions
73 lines (54 loc) · 1.07 KB
/
parse.d
File metadata and controls
73 lines (54 loc) · 1.07 KB
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
class C: typeof(new C){} // error
class D: immutable(typeof(new D)){} // error
class E: int{} // error
immutable int foo(){}
void main(){
auto fun = delegate immutable int delegate()()immutable=>()immutable{return 2;};
//pragma(msg, typeof(fun));
}
//alias void foo(){};
bool match(int matches[]);
pragma(msg, typeof(&match));
void main(){
auto d = new A().B(); // error
//auto x = r"\ ";
//import std.stdio;
//static assert(2^^2^^3==2^^(2^^3));
int[]x,y;
//1 < 2 < 3;
//@@=;
static assert(!is(typeof({mixin(`auto dg = (int)@ => 2;`);})));
auto dg = (int)@safe pure nothrow=> 2;
//pragma(msg, is(typeof(true&true==true,true==true&true)));
//int[] a;
//foreach(x;a){}
if(true){
//if(false) if(false) if(false)x="";
//else{}
}
static if (true){
if (false)
assert(3);
else
assert(4);
}
if(false)
if(false)
if(false){}
else if(false){}// if(false){}
else{}
//x="";
void dddx(){
try{ // TODO
try{
}finally{
}
}
catch(Exception e){
}
}
}
/+
auto tmpl(S...)(S sep) if((S.length==0){ } // TODO: better diagnostic
+/
// +/