Using has_type(list(Type), X) with user created type not working as expected

3 posts were split to a new topic: Types with SWI-Prolog