Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/mini/phobos/bug71.d Tue Aug 12 00:54:32 2008 +0200 @@ -0,0 +1,20 @@ +module bug71; + +void main() +{ + static TypeInfo skipCI(TypeInfo valti) + { + while (1) + { + if (valti.classinfo.name.length == 18 && + valti.classinfo.name[9..18] == "Invariant") + valti = (cast(TypeInfo_Invariant)valti).next; + else if (valti.classinfo.name.length == 14 && + valti.classinfo.name[9..14] == "Const") + valti = (cast(TypeInfo_Const)valti).next; + else + break; + } + return valti; + } +} \ No newline at end of file