That would be a misunderstanding of private
: it refers to the lexical scope in which it's written, which in this case is the file scope. In fact this use of private extension
, with the addition of support for stored properties in same-file extensions, is the only way in which the envisioned removal of fileprivate
would be possible.
1 Like