Trying to get a type to compile - here's the simplest form of it that still doesn't work:
CREATE TYPE SampleSchema.function_type AS OBJECT
(MEMBER FUNCTION member_func (param) RETURN number);
/
CREATE TYPE BODY SampleSchema.function_type AS
MEMBER FUNCTION member_func (param) RETURN number AS BEGIN RETURN 5; END;
END;
/
I've been through the documentation several times and this looks like valid syntax - so why is it still refusing to compile?