Why does Kotlin crash passing generic Result parameter?
I appear to have a situation where the compile time and run time types of a Result parameter are different, causing a ClassCastException at run time.
I updated my Android Studio Kotlin plugin version to the latest, 1.4.31, and my app began crashing. The crash did not happen with the previous version, 1.4.21. Am I misusing the Result type generics and just got lucky it worked in 1.4.21? Is this a compiler bug? The crash started with 1.4.30.
Here is sample code to reproduce the crash:...