[FIR] KT-56877: Allow checking types of containing classes in contracts
This commit is contained in:
committed by
Space Team
parent
c7a71fec17
commit
c156dfe855
+1
-1
@@ -9,7 +9,7 @@ open class Result {
|
||||
|
||||
fun isSuccess1(): Boolean {
|
||||
contract {
|
||||
<!ERROR_IN_CONTRACT_DESCRIPTION!>returns(true) implies (this@Result is Success)<!>
|
||||
returns(true) implies (this@Result is Success)
|
||||
}
|
||||
return this@Result is Success
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user