blob: 0e76ad8f2c2f54472815bd8af0fe315af56e9d14 [file]
// ISSUE: KT-67518
// LANGUAGE: +AvoidWrongOptimizationOfTypeOperatorsOnValueClasses
inline class X(val x: String)
fun box(): String = if (check(X("")) || checkInline(X(""))) "Fail" else "OK"
fun check(a: Any): Boolean = a is Comparable<*>
inline fun checkInline(a: Any): Boolean = a is Comparable<*>