Hey folks I am trying to clean up my existing code...
# android
i
Hey folks I am trying to clean up my existing codebase I want to make this function more generic.This is my current implementation I want to remove the need to pass the kClass rather infer it directly from T I tried inlining but none of those approaches work
s
Reified + inline , should work. And then get class using T::class
i
Thanks
l
?: run { null }
does nothing by the way
1