Learn how to install Kotlin 1.6.0-RC2 plugin and how to configure build with 1.6.0-RC2
Changelog
Compiler
New Features
KT-43919
Support loading Java annotations on base classes and implementing interfaces' type arguments
Performance Improvements
KT-45185
FIR2IR: get rid of IrBuiltIns usages
Fixes
KT-49477
Has ran into recursion problem with two interdependant delegatesKT-49371
JVM / IR: "NoSuchMethodError" with multiple inheritanceKT-49294
Turning FlowCollector into 'fun interface' leads to AbstractMethodErrorKT-18282
Companion object referencing it's own method during construction compiles successfully but fails at runtime with VerifyErrorKT-25289
Prohibit access to class members in the super constructor call of its companion and nested objectKT-32753
Prohibit @JvmField on property in primary constructor that overrides interface propertyKT-43433
Suspend conversion is disabled
message in cases where it is not supported and quickfix to update language version is suggestedKT-49209
Default upper bound for type variables should be non-nullKT-22562
Deprecate calls to "suspend" named functions with single dangling lambda argumentKT-49335
NPE inRepeatedAnnotationLowering.wrapAnnotationEntriesInContainer
when using@Repeatable
annotation from different fileKT-49322
Postpone promoting warnings to errors forProperTypeInferenceConstraintsProcessing
featureKT-49285
Exception on nested builder inference callsKT-49101
IllegalArgumentException: ClassicTypeSystemContext couldn't handle: Captured(out Number)KT-36399
Gradually support TYPE_USE nullability annotations read from class-filesKT-11454
Load annotations on TYPE_USE/TYPE_PARAMETER positions from Java class-filesKT-18768
@Notnull
annotation from Java does not work with varargsKT-24392
Nullability of Java arrays is read incorrectly if@Nullable
annotation has both targets TYPE_USE and VALUE_PARAMETERKT-48157
FIR: incorrect resolve with built-in names in useKT-46409
FIR: erroneous resolve to qualifier instead of extensionKT-44566
FirConflictsChecker
do not check for conflicting overloads across multiple filesKT-37318
FIR: Discuss treating flexible bounded constraints in inferenceKT-45989
FIR: wrong callable reference type inferredKT-46058
[FIR] Remove state from some checkersKT-45973
FIR: wrong projection type inferredKT-43083
[FIR] False positive 'HIDDEN' on internalKT-46727
Report warning on contravariant usages of star projected argument from JavaKT-40668
FIR: Ambiguity on qualifier when having multiple different same-named objects in near scopesKT-37081
[FIR] errors NO_ELSE_IN_WHEN and INCOMPATIBLE_TYPES absenceKT-48162
NON_VARARG_SPREAD isn't reported on *toTypedArray() callKT-45118
ClassCastException caused by parent and child class in if-elseKT-47605
Kotlin/Native: switch to LLD linker for MinGW targetsKT-44436
Support default not null annotations to enhance T into T!!KT-49190
Increase stub versions
Docs & Examples
KT-48534
Wrong compiler argument for RequiresOptIn
IDE. Debugger
KT-47970
AE: "Either library or explicit name have to be provided " in IR debugger tests
JavaScript
KT-43783
KJS / IR: companion object and nested objects are not exportedKT-47524
KJS / IR: Treat protected members as part of exported API
Libraries
KT-46229
Bring back Duration factory extension properties
Native
KT-49384
Kotlin/Native: Unexpected variance in super type argument: out@0
KT-49234
SIGSEGV using the new memory manager in release in Kotlin 1.6.0-RC in MacosX64
Tools. Gradle
KT-49189
In Gradle, dependencies on an MPP with Android+JVM fail to resolve in pure-Java projectsKT-48830
Change deprecation level to 'ERROR' for 'KotlinGradleSubplugin'KT-48264
Cannot write Kotlin build report unless directory existsKT-45504
Deprecate Gradle option KotlinJvmOptions.useIR since 1.5
Tools. Gradle. JS
KT-49124
KJS / Gradle: Unable to load '@webpack-cli/serve' commandKT-49201
KJS / Gradle: NPM dependencies resolution may fail on parallel builds
Tools. Gradle. Multiplatform
KT-48709
MPP: Task compileKotlinMacosX64 fails on matching native variants if ktlint presented
Tools. REPL
KT-47783
REPL: Keywords completion appears after numeric and string literals
Tools. Scripts
KT-49400
Script resolver options can't take values with special symbols (/, , $, :, .) in them
Checksums
File | Sha256 |
---|---|
kotlin-compiler-1.6.0-RC2.zip | ef2a9b848584b8d8dd9a5e652ed8f9121076b0c65c0c223c780a2f81519f2416 |
kotlin-native-linux-x86_64-1.6.0-RC2.tar.gz | 26b7dc6e82e8521e40785456e7fde3b1194d4b8ed6cc618f9865d3ecd332c31b |
kotlin-native-macos-x86_64-1.6.0-RC2.tar.gz | a2f9c8560171a3b14555be9847b1377df25dd3f952e4ece852fbf804e2ae773d |
kotlin-native-macos-aarch64-1.6.0-RC2.tar.gz | 4aa765eda033c6659bc51758354dc5e226cddd0047038dd90c70c4e0cf476b38 |
kotlin-native-windows-x86_64-1.6.0-RC2.zip | a55a7cc981b57de4d090bd5f94362c3bc5b266a66a698ed3772b3cee65a199fe |