How should I restructure (theoretical) code like t...
# announcements
n
How should I restructure (theoretical) code like this to prevent leaking warnings?
Copy code
open class MainApplication() {
   val otherComponent = OtherComponent(this)
}

// Needs a reference to the main component
class OtherComponent(val main: MainApplication) {}