Skip to content

Commit

Permalink
update: add 2.0.20 to K2 migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahhaggarty committed Aug 26, 2024
1 parent 7981b7a commit aab5ff4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docs/topics/k2-compiler-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class Expanded // Visibility is public by defau

Starting with Kotlin 2.0.0, the Kotlin K2 compiler is enabled by default.

To upgrade the Kotlin version, change it to 2.0.0 in your [Gradle](gradle-configure-project.md#apply-the-plugin) and
To upgrade the Kotlin version, change it to 2.0.0 or a later release in your [Gradle](gradle-configure-project.md#apply-the-plugin) and
[Maven](maven.md#configure-and-enable-the-plugin) build scripts.

To have the best experience with IntelliJ IDEA or Android Studio, consider [enabling K2 mode](#support-in-ides)
Expand Down Expand Up @@ -592,11 +592,11 @@ by your build system only.

## Try the Kotlin K2 compiler in the Kotlin Playground

The Kotlin Playground supports the 2.0.0 release. [Check it out!](https://pl.kotl.in/czuoQprce)
The Kotlin Playground supports Kotlin 2.0.0 and later releases. [Check it out!](https://pl.kotl.in/czuoQprce)

## How to roll back to the previous compiler

To use the previous compiler in Kotlin 2.0.0, either:
To use the previous compiler in Kotlin 2.0.0 and later releases, either:

* In your `build.gradle.kts` file, [set your language version](gradle-compiler-options.md#example-of-setting-a-languageversion) to `1.9`.

Expand Down Expand Up @@ -1282,12 +1282,12 @@ for further reading. Changes listed with an asterisk (*) next to the Issue ID ar

The following Kotlin releases have support for the new K2 compiler:

| Kotlin release | Stability level |
|----------------|-----------------|
| 2.0.0 | Stable |
| 1.9.20–1.9.25 | Beta |
| 1.9.0–1.9.10 | JVM is Beta |
| 1.7.0–1.8.22 | Alpha |
| Kotlin release | Stability level |
|-----------------------|-----------------|
| 2.0.0–%kotlinVersion% | Stable |
| 1.9.20–1.9.25 | Beta |
| 1.9.0–1.9.10 | JVM is Beta |
| 1.7.0–1.8.22 | Alpha |

## Compatibility with Kotlin libraries

Expand Down
2 changes: 1 addition & 1 deletion docs/topics/typecasts.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fun runProcessor(): Processor? {

### Exception handling

Smart cast information is passed on to `catch` and `finally` blocks. This change makes your code safer
Smart cast information is passed on to `catch` and `finally` blocks. This makes your code safer
as the compiler tracks whether your object has a nullable type. For example:

```kotlin
Expand Down

0 comments on commit aab5ff4

Please sign in to comment.