in reply to Re: Creating new objects from within a package
in thread Creating new objects from within a package

Yes, thank you dave_the_m that explains it. Of course in most real code this issue will never arise because the class will be declared before it is called.

And in this case I can fix the issue by "predefining" the forward ref with

{ package T; }

somewhere before the class is used