It will be very usefull if a file level access modifier exists fro a class memeber. Similar to private for top level stuffs.
Im working on a react like UI framework and every component is consist of two piece. The component class, and the extension function which will be used in the typesafe builder.
What I try to achieve is to mark the component’s constructor to visible only inside the file to do not allow another code in another file to instantiate the component but use the extension function.