Method/Property promoting from protected to public

How to move a protected method to public block with no need for a wrapper, like

MyClass = class
protected
method Test;
end;

SomeClass = class(MyClass)
public
method Test; inherited;
end;

Same goes for the properties.

Does Oxygene support this yet? If no, will it in the near future?

Regards.

To add mysellf: I know this can be done by using mapped class. But they don’t support Interface implementation (not 100% sure) neither inheritance - new classes can not inherited from it (100& sure). While I was testing mapped classes, i got some strange behaving. I simple add these lines into one of the file in existing project.

List = public class mapped to System.Collections.Generic.List ‘<‘Object’>’
public
method RemoveAt(&index: Int32); mapped to RemoveAt(&index);
end;

These lines got nothing to do with existing project’s classes, but i got the error - see attached file Mapping - Error.jpg.

So I created a fresh project where the same lines do compile. See attached file Mapping - OK.jpg.

If I move those lines in existing project from one file to another, in some cases the project will compile and in some cases won’t.

FYI: On the site http://docs.elementscompiler.com/Concepts/MappedTypes/Defining/#q=mapped there is a mapped example.

List<T> = public class mapped to ArrayList'<'T'>'......

I don’t think System.Collections.Generic has the ArrayList’<‘T’>’ class.

I’m using VS 2012, NET 4.5 and the second latest Oxygene.

Regards.