comparison tests/mini/bug71.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug71.d@288fe1029e1f
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module bug71;
2
3 void main()
4 {
5 static TypeInfo skipCI(TypeInfo valti)
6 {
7 while (1)
8 {
9 if (valti.classinfo.name.length == 18 &&
10 valti.classinfo.name[9..18] == "Invariant")
11 valti = (cast(TypeInfo_Invariant)valti).next;
12 else if (valti.classinfo.name.length == 14 &&
13 valti.classinfo.name[9..14] == "Const")
14 valti = (cast(TypeInfo_Const)valti).next;
15 else
16 break;
17 }
18 return valti;
19 }
20 }