[Issue 732] New: Boxer unit test fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 23 10:53:08 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=732
Summary: Boxer unit test fails
Product: D
Version: 0.177
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dvdfrdmn at users.sf.net
Running the Phobos unittest program yields:
Error: Unboxed bool as int; however, unboxable says it should fail.
Fix: Replace line 709:
return *cast(void**) value.data;
if (isArrayTypeInfo(value.type))
return *cast(void[]*) value.data;
- if (typeid(Object) == value.type)
return *cast(Object*) value.data;
throw new UnboxException(value, typeid(T));
with:
+ if (cast(TypeInfo_Class) value.type)
Note: Typeinfo_Interface probably also needs to be handled here and in
unboxable().
--
More information about the Digitalmars-d-bugs
mailing list