// FIR_IDENTICAL
// DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -UNREACHABLE_CODE -UNUSED_EXPRESSION
// OPT_IN: kotlin.contracts.ExperimentalContracts

/*
 * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
 *
 * SECTIONS: contracts, declarations, contractBuilder, common
 * NUMBER: 15
 * DESCRIPTION: contracts with not allowed conditions with boolean constants or boolean constant expressions in implies.
 * UNEXPECTED BEHAVIOUR
 * ISSUES: KT-26491
 */

import kotlin.contracts.*

// TESTCASE NUMBER: 1
fun case_1(): Boolean {
    contract { returns(true) implies true }
    return true
}

// TESTCASE NUMBER: 2
fun case_2(): Boolean {
    contract { returns(true) implies (true || false) }
    return true || false
}