[FIR] Move FirReturnsImpliesAnalyzer to the extended checkers
This commit is contained in:
committed by
Space Team
parent
db720d375d
commit
884cd6c754
+2
-2
@@ -5,7 +5,7 @@ fun calculateNumber(block: () -> Int): Int contract [
|
||||
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
|
||||
] = block()
|
||||
|
||||
fun <R> calculateResult(num: Int?, calculate: (Int?) -> R): R contract <!WRONG_IMPLIES_CONDITION!>[
|
||||
fun <R> calculateResult(num: Int?, calculate: (Int?) -> R): R contract [
|
||||
callsInPlace(calculate, InvocationKind.EXACTLY_ONCE),
|
||||
returns() implies (num != null)
|
||||
]<!> = calculate(num)
|
||||
] = calculate(num)
|
||||
|
||||
Reference in New Issue
Block a user