bool AnyType::wxsTypeMatches(const SchemaType::Ptr &other) const { if(other) return this == other.data() ? true : wxsTypeMatches(other->wxsSuperType()); else return false; }