Say I have ``` class Foo() { fun <R : An...
# announcements
d
Say I have
Copy code
class Foo() {
      fun <R : Any> do(class: Class<R>): R { 
               return thisIsAReifiedFun<AnotherClass<class>>().result
     }
}
inline fun <reified R : Any> do() = <http://foo.do|foo.do>(R::class.java)
This won't work (because of
class
), but how could I do something like this?