Mercurial > projects > ldc
comparison tests/mini/phobos/bug71.d @ 500:fc098100ecc7
fixed some failing minitests (badly classified / phobos)
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 00:54:32 +0200 |
parents | tests/mini/bug71.d@1bb99290e03a |
children |
comparison
equal
deleted
inserted
replaced
496:8bd31c8208da | 500:fc098100ecc7 |
---|---|
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 } |