// FIR_IDENTICAL // KT-702 Type inference failed fun getJavaClass() : java.lang.Class { return "" as Class } public class Throwables() { companion object { public fun propagateIfInstanceOf(throwable : Throwable?, declaredType : Class?) { if (((throwable != null) && declaredType?.isInstance(throwable)!!)) { throw declaredType?.cast(throwable)!! } } public fun propagateIfPossible(throwable : Throwable?) { propagateIfInstanceOf(throwable, getJavaClass()) //; Type inference failed: Mismatch while expanding constraints propagateIfInstanceOf(throwable, getJavaClass()) // Type inference failed: Mismatch while expanding constraints } } }