Kotlin/kotlin-spec

Wrong fun generics autocast without using val/var

Std1o opened this issue · 1 comments

Std1o commented

How did it happen that the unused variable from below affects the autocast of generics in the line above?

normal cringe

And I can tell how it happened.
decompiled bytecode with val usage

decompiled bytecode without val usage

It's not ok, because I need receive right input type of data without specifying explicit type and without useless var/val. Please fix it!

Std1o commented

It's coroutine issue Kotlin/kotlinx.coroutines#3904