holgerbrandl
07/15/2021, 6:41 AMIlya Muradyan
07/15/2021, 6:51 AMit
is declared in both cases? I believe that if you define it in the same cell, everything should be fine.
See also https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201holgerbrandl
07/15/2021, 7:04 AMaltavir
07/15/2021, 7:30 AMIlya Muradyan
07/15/2021, 7:33 AMIlya Muradyan
07/15/2021, 7:34 AMholgerbrandl
07/15/2021, 8:14 AM