I believe I'm experiencing the same issue as #46, even though this is supposed to be fixed in 0.6.0.
I'm seeing 125 Xcode warnings inside my generated Swift file for "forced cast from '..' to '..' always succeeds, did you mean to use 'as'?". These all occur inside the sealed Swift property relating to Kotlin sealed classes, where the Swift enum case always has 1 parameter and the Kotlin sealed class does not use generics at all.
I believe this should fall into the logic mentioned in #46:
If the enum case has a parameter, and the return type is not generic, it does not need to be force-cast.
My environment:
KSwift version 0.6.0
Xcode 13.4.1 (13F100)
iOS project targeting iOS 14.1+
Manually integrating the generated Swift files rather than using Cocoapods
I believe I'm experiencing the same issue as #46, even though this is supposed to be fixed in 0.6.0.
I'm seeing 125 Xcode warnings inside my generated Swift file for "forced cast from '..' to '..' always succeeds, did you mean to use 'as'?". These all occur inside the
sealed
Swift property relating to Kotlin sealed classes, where the Swift enum case always has 1 parameter and the Kotlin sealed class does not use generics at all.I believe this should fall into the logic mentioned in #46:
My environment: