blob: 59e3f230481cd09b085badf72d35d30a2b8e40d8 [file]
// LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
// OPT_IN: kotlin.contracts.ExperimentalContracts
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "IMPOSSIBLE_IS_CHECK_ERROR")
package test
import kotlin.contracts.*
class A
fun deeplyNested(x: Any?, y: Any?, b: Boolean, s: String?) {
contract {
returns(true) implies (((x is Int && x is String) || (x is Int && y is A) || b || (!b)) && s != null && (y is A || x is String))
}
}