Kotlin 1.4.20-M2
Pre-release
Pre-release
anastasiiaSpaseeva-zz
released this
19 Oct 11:29
·
135 commits
to 1.4.20
since this release
Info about particular features
KT-25960
Kapt: Support new @JvmDefault functionalityKT-40030
Parcelize: Support the new Parcelize plugin in GradleKT-41799
String.replace performance improvementsKT-41622
IDE: Kotlin scripting support can’t find context class from same project
CHANGELOG
1.4.20-M2
Android
KT-42121
Deprecate Kotlin Android Extensions compiler pluginKT-42267
Platform declaration clash
error in IDE when usingkotlinx.android.parcel.Parcelize
KT-42406
Long or infinite code analysis on simple files modification
Compiler
KT-11713
Refine visibility check for synthetic property with protected setterKT-21147
JEP 280: Indify String Concatenation (StringConcatFactory)KT-34178
Scripts should be able to access imports objectsKT-41484
JVM IR: support -Xemit-jvm-type-annotationsKT-42005
JVM / IR: "NullPointerException: Parameter specified as non-null is null" when toString is called on inline class with not primitive propertyKT-42450
NI: "IllegalStateException: Error type encountered: NonFixed:" with coroutinesKT-42523
Missed DefaultImpls for interface in-jvm-default=all
mode on inheriting it from interface compiled in old schemeKT-42524
Wrong specialization diagnostic is reported on inheriting from java interface with default with -Xjvm-default=all-compatibilityKT-42546
HMPP: bogus overload resolution ambiguity on using and expect-function declaration with nullable expect in a signature
Docs & Examples
KT-42318
No documentation forkotlin.js.js
IDE
KT-38959
IDE: False negative EXPLICIT_DELEGATION_CALL_REQUIRED, "IllegalArgumentException: Range must be inside element being annotated"
IDE. Debugger
KT-38659
Evaluate Expression:toString()
on variable returns error when breakpoint is incommonTest
sourceset
IDE. Decompiler, Indexing, Stubs
KT-28732
Stub file element types should be registered early enoughKT-41346
IDE: "AssertionError: Stub type mismatch: USER_TYPE!=REFERENCE_EXPRESSION" withCollapsedDumpParser
class from IDEA SDKKT-41859
File analysis never ending with kotlinx.cli (AssertionError: Stub type mismatch: TYPEALIAS!=CLASS)
IDE. Gradle. Script
KT-41141
Gradle Kotlin DSL: "cannot access 'java.lang.Comparable'. Check your module classpath" with empty JDK in Project structure
IDE. Inspections and Intentions
KT-38915
"Remove explicit type specification" intention should be disabled in explicit API modeKT-38981
"Specify return type explicitly" inspection is not reported for declaration annotated with @PublishedApi in Explicit Api modeKT-39026
'Specify return type explicitly' intention duplicates compiler warning in Explicit api mode
IDE. Script
KT-41622
IDE: Kotlin scripting support can't find context class from same projectKT-41905
IDE / Script: FilePathPattern parameter in @KotlinScript annotation is not reflected correctly in Pattern / ExtensionKT-42206
Cannot load script definitions using org.jetbrains.kotlin.jsr223.ScriptDefinitionForExtensionAndIdeConsoleRootsSource
IDE. Tests Support
KT-37799
Don't show a target choice in context menu for a test launched on specific platform
IDE. Wizards
KT-42372
Rrename test classes in wizard template to avoid name clashing
JavaScript
KT-38136
JS IR BE: add an ability to generate separate js files for each module and maybe each libraryKT-38868
[MPP / JS / IR] IllegalStateException: "Serializable class must have single primary constructor" for expect class without primary constructor with @serializable annotationKT-41275
KJS / IR: "IllegalStateException: Can't find name for declaration FUN" caused by default value in constructor parameterKT-41627
KJS / IR / Serialization: IllegalStateException: Serializable class must have single primary constructor
KMM Plugin
KT-41522
KMM: exceptions for Mobile Multiplatform plugin are suggested to report to Google, not JetBrainsKT-42065
[KMM plugin] iOS apps fail to launch on iOS simulator with Xcode 12
Libraries
KT-41799
String.replace performance improvements
Native. C and ObjC Import
KT-41250
[C-interop] Stubs for C functions without parameter names should have non-stable names
Native. Platform libraries
KT-42191
Support for Xcode 12
Native. Runtime. Memory
KT-42275
"Memory.cpp:1605: runtime assert: Recursive GC is disallowed" sometimes when using Kotlin from Swift deinit
Native. Stdlib
KT-39145
MutableData append method
Tools. Compiler Plugins
KT-36329
Provide diagnostic in kotlinx.serialization when custom serializer mismatches property typeKT-40030
Move the Parcelize functionality out of the Android Extensions plugin
Tools. Gradle. JS
KT-39838
Kotlin/JS Gradle tooling: NPM dependencies of different kinds with different versions of the same package fail with "Cannot find package@version in yarn.lock"KT-40202
Kotlin/JS: Gradle: NPM version range operators are written into package.json as escape sequencesKT-40986
KJS / Gradle: BuildOperationQueueFailure when two different versions of js library are used as dependenciesKT-42222
KJS / Gradle: "Cannot find package@version in yarn.lock" when npm dependencies of one package but with different version are used in projectKT-42339
Support dukat binaries generation
Tools. Gradle. Native
KT-40999
CocoaPods Gradle plugin: Support custom cinterop options when declaring a pod dependency.KT-41844
Kotlin 1.4.10 gradle configuration error with cocoapods using multiple multiplatform modules
Tools. Scripts
KT-37987
Kotlin script: hyphen arguments not forwarded to scriptKT-39502
Scripting: reverse order of Severity enum so that ERROR > INFOKT-42335
No "caused by" info about an exception that thrown in Kotlin Script