Wrtite the class:
type x = public extension class(String)
public method x;
end;
Press Ctrl-Shift-C and the following code is generated in the implementation section:
extension method x.x;
begin
end;
The word extension should not have been there.