e.g, given the interface ``` interface Navigable&l...
# announcements
e.g, given the interface
Copy code
interface Navigable<out F: Fragment> {
    fun ActionBarTitleRes(): Int
    fun NavBarMenuItemId(): Int? = null

    fun newInstance(): F
and the class
Copy code
class MissionsFragment : Fragment() {
    // code here...
    companion object : Navigable<MissionsFragment> {
        override fun ActionBarTitleRes(): Int = R.string.missions_title
        override fun NavBarMenuItemId(): Int? = R.id.nav_missions

        override fun newInstance(): MissionsFragment {
            return MissionsFragment()
then, inside a function
Copy code
fun someCheck(someFrag : Fragment) {
I would like to check if 'someFrag' has a companion object that implements