79815656

Date: 2025-11-10 13:41:42
Score: 2
Natty:
Report link

Unfortunately I don't think this is possible as the compiler will find a common supertype such as "Any" and use it. You could have concrete functions to do this for common types that you use but the generic version will always allow type widening due to how Kotlin's type inference works.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jenarros