Using an ARRAY of any type as return type will result in an error when trying to convert the library to a TIA Portal library.
Workaround: Use a variable in the OUTPUT-section instead.
FUNCTION Example : ARRAY[0..10] OF INT
;
END_FUNCTION
CLASS Exanple
METHOD PUBLIC ReturnArray : ARRAY[0..1, 5..20] of INT
;
END_METHOD
END_CLASS