Is this a bug I should report? Knowing what I do about generics now I think the type check needs to be suspended until the type is actually specialized.
generic TCocoaObject<T> = objcclass (NSObject)
// ERROR: The type "TCocoaObject$1.T" is not supported for interaction with the Objective-C and the blocks runtime.
function obj: T; message 'obj';
function TCocoaObject.obj: T;
result := m_obj;
> On Nov 11, 2019, at 1:25 PM, Sven Barth via fpc-pascal <[hidden email]> wrote:
> Generics are not considered supported with Objective Pascal types.
There's really not any reason they shouldn't though. If you specialized with "string" for example that wouldn't be anything out of the ordinary so why does it matter if it's generic or not? Maybe Jonas has a reason I don't know about.