Skip to content

Commit 1181189

Browse files
committed
update: add youtube videos to whatsnew22 and whatsnew2220
1 parent 38a1f59 commit 1181189

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

docs/topics/whatsnew/whatsnew22.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ We would appreciate your feedback on our issue tracker, [YouTrack](https://youtr
130130

131131
Kotlin 2.2.0 introduces an implementation of context-sensitive resolution in preview.
132132

133+
You can find an overview of this feature in this video:
134+
135+
<video src="https://www.youtube.com/v/aF8RYQrJI8Q" title="Context-sensitive resolution in Kotlin 2.2.0"/>
136+
133137
Previously, you had to write the full name of enum entries or sealed class members, even when the type could be inferred from the context.
134138
For example:
135139

@@ -334,6 +338,12 @@ For more information about the new defaulting rules for annotation use-site targ
334338
### Support for nested type aliases
335339
<primary-label ref="beta"/>
336340

341+
Kotlin 2.2.0 adds support for defining type aliases inside other declarations.
342+
343+
You can find an overview of this feature in this video:
344+
345+
<video src="https://www.youtube.com/v/1W6d45IOwWk" title="Nested type aliases in Kotlin 2.2.0"/>
346+
337347
Previously, you could only declare [type aliases](type-aliases.md) at the top level of a Kotlin file. This meant
338348
that even internal or domain-specific type
339349
aliases had to live outside the class where they were used.
@@ -572,6 +582,10 @@ fun main() {
572582
573583
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.
574584
585+
You can find an overview of this feature in this video:
586+
587+
<video src="https://www.youtube.com/v/KSvq7jHr1lo" title="Exposed inline value classes for Java in Kotlin 2.2.0"/>
588+
575589
By default, Kotlin compiles inline value classes to use **unboxed representations**, which are more performant but often
576590
hard or even impossible to use from Java. For example:
577591

docs/topics/whatsnew/whatsnew2220.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
_[Released: September 10, 2025](releases.md#release-details)_
44

5-
> Share your thoughts on Kotlin!
6-
>
7-
> [Take our Kotlin Developer Survey](https://surveys.jetbrains.com/s3/7e238a7b85e5). It only takes about 10 minutes.
8-
> Your feedback helps us improve the language, tools, and ecosystem.
9-
>
10-
{style="note"}
5+
<tldr><p>For details about bug fix release 2.2.21, see the <a href="https://github.com/JetBrains/kotlin/releases/tag/v2.2.21">changelog</a></p></tldr>
116

127
The Kotlin 2.2.20 release is out, delivering important changes for web development. [Kotlin/Wasm is now Beta](#kotlin-wasm),
138
with improvements to [exception handling in JavaScript interop](#improved-exception-handling-in-kotlin-wasm-and-javascript-interop),
@@ -25,6 +20,10 @@ Additionally, here are some main highlights:
2520
>
2621
{style="note"}
2722

23+
You can also find a short overview of the updates in this video:
24+
25+
<video src="https://www.youtube.com/v/QWpp5-LlTqA" title="What's new in Kotlin 2.2.21"/>
26+
2827
## IDE support
2928

3029
The Kotlin plugin that supports Kotlin 2.2.20 is bundled in the latest versions of IntelliJ IDEA and Android Studio.

0 commit comments

Comments
 (0)