As far as I'm aware it's currently not possible to specify a class/enum/alias as only visible to current file. This feature is already implemented for functions and fields; it would be amazing to have other kinds of definitions also implement this behavior.