Skip to content

Update Kotlin to 1.9.20 #229

@fzhinkin

Description

@fzhinkin

Kotlin version could not be easily updated to 1.9.20 as there are a few issues that have to be solved first:

  • KMP no longer applies java plugin when jvm-target is configured, it applies only java-base-plugin (see KT-59595). This affects the animalsniffer plugin configuration;
  • 1.9.20 requires to specify a -Xexpect-actual-classes flag to suppress warnings about expect/actual classes;
  • it'll be prohibited to use default arguments in expect declarations actualized with typealises; we actively use it for exception classes;
  • KT-22841 introduced a warning for non-final actual classes having different super-types compared to its expect declaration. RawSink interface is affected (on JVM in implements java.io.Flushable). For now, we can annotate the actual definition with @AllowDifferentMembersInActual;
  • Wasm tests required nodejs update. At the moment, there are only canary v21 builds, but mocha doesn't work with them.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions