Parameterized companion extensions


#1

I was wondering why

fun <T> T.Companion.foo() {}

Does not work. Thanks!


#2

Because not every type has a companion object, and out of those that do, not all are named Companion.