Don't deprecate non-smart-cast-based version of shouldBeInstanceOf #3843
Labels
assertions 🔍
Related to the assertion mechanisms within the testing framework.
enhancement ✨
Suggestions for adding new features or improving existing ones.
Version of
shouldBeInstanceOf
etc. accepting a block of code as argument are marked for deprecation. However, smart casts are not always usable across module boundaries (https://discuss.kotlinlang.org/t/what-is-the-reason-behind-smart-cast-being-impossible-to-perform-when-referenced-class-is-in-another-module/2201/2). Therefore, I sometimes have to resort to the deprecated versions accepting a block to avoid a compiler error. Therefore, these methods should not be deprecated.The text was updated successfully, but these errors were encountered: