a way to place inner classes or functions thereof ...
# language-proposals
h
a way to place inner classes or functions thereof in a different file for better organization, potentially via annotations:
Copy code
import foo.Foo
@innerOf(Foo)
inner class Bar
Copy code
import foo.Foo
@innerOf(Foo.Bar)
fun bar() = "blah"
The same may then be extended to sealed classes
7
g
Maybe just do not make them inner, so you can organize them as you want