class Family() { fun addMember(name: String) {} inline operator fun invoke(body: Family.() -> Unit) { body() } }
After using