I'd like to use generics in companion object in this way:
class Foo<T> {
/* ... */
companion object {
fun foo(args: List<T>) {
/* ... */
}
}
}
Unfortunately the code above raise Unresolved reference: T
error.