14 assert (c >= '0' && c <= '9', s[0..$]);
21 /**************************************/
24 static assert( __traits(identifier, bug4732) == "bug4732");
26 /**************************************/
28 template Compileable(int z) { bool OK=true;}
32 { enum T { a = 5 } T v; }
33 { enum T { a = 6 } T w; }
39 { struct T { int a = 2; } T v; }
40 { union T { int a = 3; } T w; }
46 { struct T { int a = 2; } T v; }
47 { class T { int a = 3; } T w; }
53 { enum T { a = 3 } T w; }
54 { struct T { int a = 2; } T v; }
59 static assert(!is(typeof(Compileable!(bug5245a!(int)()).OK)));
60 static assert(!is(typeof(Compileable!(bug5245b!(int)()).OK)));
61 static assert(!is(typeof(Compileable!(bug5245c!(int)()).OK)));
62 static assert(!is(typeof(Compileable!(bug5245d!(int)()).OK)));
64 /**************************************/
66 class Bug5349(T) // segfault D2.051
75 return x; // should not compile
78 return (new B).inner();
83 static assert(!is(typeof(Bug5349!(int))));
85 /**************************************/
89 class Template4033(T) {
90 static assert(is(T : Bug4033));
93 alias Template4033!(Z4033) Bla;
95 class Z4033 : Bug4033 { }
97 /**************************************/
104 Bug4322 f = Bug4322();
105 Bug4322 g = Bug4322.init;