diff --git a/src/commonMain/kotlin/org/jetbrains/annotations/Contract.kt b/src/commonMain/kotlin/org/jetbrains/annotations/Contract.kt index c5543aa..046cfa6 100644 --- a/src/commonMain/kotlin/org/jetbrains/annotations/Contract.kt +++ b/src/commonMain/kotlin/org/jetbrains/annotations/Contract.kt @@ -107,8 +107,7 @@ expect annotation class Contract( *
"this" | Method mutates the receiver object, and doesn't mutates any objects passed as arguments (cannot be applied for static method or constructor) |
"param" | Method mutates the sole argument and doesn't mutate the receiver object (if applicable) |
"this" | Method mutates the receiver object, and doesn't mutate any objects passed as arguments (cannot be applied for static method or constructor) |
"param" | Method mutates the sole argument and doesn't mutate the receiver object (if applicable) or anything else |
"param1", "param2", ... | Method mutates the N-th argument |
"this,param1" | Method mutates the receiver and first argument and doesn't mutate any other arguments |
"io" | Method performs input/output changing the outer world but does not mutate any observable program state |
"this,param1" | Method mutates the receiver and first argument and doesn't mutate any other arguments or observable program state |
"io,this" | Method performs input/output changing the outer world and mutates the receiver, but doesn't mutate any arguments or observable program state |