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/whatsnew22.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -566,6 +566,10 @@ fun main() {
566
566
### Improved Java interop with inline value classes
567
567
<primary-label ref="experimental-general"/>
568
568
569
+
> Support for code analysis, code completion, and highlighting of this feature in IntelliJ IDEA is currently available only in [2025.3 EAP builds](https://www.jetbrains.com/idea/nextversion/).
570
+
>
571
+
{style = "note"}
572
+
569
573
Kotlin 2.2.0 introduces a new experimental annotation: [`@JvmExposeBoxed`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-expose-boxed/). This annotation makes it easier to consume [inline value classes](inline-classes.md) from Java.
570
574
571
575
By default, Kotlin compiles inline value classes to use **unboxed representations**, which are more performant but often
Copy file name to clipboardExpand all lines: docs/topics/whatsnew/whatsnew2220.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,10 @@ We would appreciate your feedback in our issue tracker, [YouTrack](https://youtr
152
152
### Data-flow-based exhaustiveness checks for `when` expressions
153
153
<primary-labelref="experimental-opt-in"/>
154
154
155
+
> Support for code analysis, code completion, and highlighting of this feature in IntelliJ IDEA is currently available only in [2025.3 EAP builds](https://www.jetbrains.com/idea/nextversion/).
156
+
>
157
+
{style = "note"}
158
+
155
159
Kotlin 2.2.20 introduces **data-flow-based** exhaustiveness checks for `when` expressions.
156
160
Previously, the compiler's checks were limited to the `when` expression itself,
157
161
often forcing you to add a redundant `else` branch.
@@ -191,6 +195,10 @@ kotlin {
191
195
### Support for reified types in `catch` clauses
192
196
<primary-labelref="experimental-opt-in"/>
193
197
198
+
> Support for code analysis, code completion, and highlighting of this feature in IntelliJ IDEA is currently available only in [2025.3 EAP builds](https://www.jetbrains.com/idea/nextversion/).
199
+
>
200
+
{style = "note"}
201
+
194
202
In Kotlin 2.2.20, the compiler now allows using [reified generic type parameters](inline-functions.md#reified-type-parameters) in `catch` clauses of `inline` functions.
195
203
196
204
Here's an example:
@@ -232,6 +240,10 @@ The Kotlin team is grateful to external contributor [Iven Krall](https://github.
232
240
### Improved Kotlin contracts
233
241
<primary-labelref="experimental-opt-in"/>
234
242
243
+
> Support for code analysis, code completion, and highlighting of this feature in IntelliJ IDEA is currently available only in [2025.3 EAP builds](https://www.jetbrains.com/idea/nextversion/).
244
+
>
245
+
{style = "note"}
246
+
235
247
Kotlin 2.2.20 introduces several improvements to [Kotlin contracts](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.contracts/contract.html), including:
236
248
237
249
*[Support for generics in contract type assertions](#support-for-generics-in-contract-type-assertions).
0 commit comments