You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/whatsnew/whatsnew2220.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,8 +225,8 @@ Kotlin 2.2.20 introduces several improvements to [Kotlin contracts](https://kotl
225
225
226
226
*[Support for generics in contract type assertions](#support-for-generics-in-contract-type-assertions).
227
227
*[Support for contracts inside property accessors and specific operator functions](#support-for-contracts-inside-property-accessors-and-specific-operator-functions).
228
-
*[Support for the `returnsNotNull()` function in contracts](#support-for-the-returnsnotnull-function-in-contracts), allowing you to assume conditions are true when passed inside lambdas.
229
-
*[New `holdsIn` keyword](#new-holdsin-keyword) as a way to ensure a non-null return value when a condition is met.
228
+
*[Support for the `returnsNotNull()` function in contracts](#support-for-the-returnsnotnull-function-in-contracts) as a way to ensure a non-null return value when a condition is met.
229
+
*[New `holdsIn` keyword](#new-holdsin-keyword), allowing you to assume conditions are true when passed inside lambdas.
230
230
231
231
These improvements are [Experimental](components-stability.md#stability-levels-explained). To opt in, you still need to
232
232
use the `@OptIn(ExperimentalContracts::class)` annotation when declaring contracts. The `holdsIn` keyword and the `returnsNotNull()`
0 commit comments