The condition in this if-statement https://github.com/homalg-project/CAP_project/blob/039bfd462710bd481024c1b501ad9681e6160c09/CompilerForCAP/gap/InferDataTypes.gi#L645 should include `and not data_type = "list_with_unknown_element_type"`.
The condition in this if-statement
CAP_project/CompilerForCAP/gap/InferDataTypes.gi
Line 645 in 039bfd4
should include
and not data_type = "list_with_unknown_element_type".