Effects: add test on (de)serialization of contracts
- Add ContractDescriptorRenderer - Add option to dump function contracts in DescriptorRendererOptions - Add parsing of LANGUAGE_VERSION directive in AbstractLoadJava - Add tests on serialization-deserializaton identity of contracts ========== Introduction of EffectSystem: 13/18
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
public fun returnsAndCalls(/*0*/ b: kotlin.Boolean, /*1*/ block: () -> kotlin.Unit): kotlin.Unit
|
||||
Returns(FALSE) -> !b
|
||||
CallsInPlace(block, UNKNOWN)
|
||||
Returns(TRUE) -> b
|
||||
|
||||
public fun returnsAndFinished(/*0*/ b: kotlin.Boolean): kotlin.Unit
|
||||
Returns(TRUE) -> b
|
||||
Returns(WILDCARD) -> b != null
|
||||
Returns(FALSE) -> !b
|
||||
|
||||
public fun severalCalls(/*0*/ x: () -> kotlin.Unit, /*1*/ y: () -> kotlin.Unit): kotlin.Unit
|
||||
CallsInPlace(x, AT_MOST_ONCE)
|
||||
CallsInPlace(y, AT_LEAST_ONCE)
|
||||
|
||||
public fun threeReturnsValue(/*0*/ b: kotlin.Boolean): kotlin.Unit
|
||||
Returns(NOT_NULL) -> b != null
|
||||
Returns(TRUE) -> b
|
||||
Returns(FALSE) -> !b
|
||||
|
||||
public fun twoReturnsValue(/*0*/ b: kotlin.Boolean): kotlin.Unit
|
||||
Returns(TRUE) -> b
|
||||
Returns(FALSE) -> !b
|
||||
Reference in New Issue
Block a user