Why can't Kotlin infer types here?

use this and it works.
(I assume you need a version newer than 1-3-0-rc-190, but didn’t try)

1 Like