Thanks to @eyupcanakman and @arimu1 for contributing to this release.
- New: Kotlin 2.4.20.
- New: KSP 2.3.11.
- New: Support for explicit backing fields. (#2325)
- New:
value classvalidations have been relaxed to support multi-field value classes. (#2329) - New: Extract
CodeBlockHolderinterface for constructs that can hold aCodeBlockbody and their builders. (#2331) - New: Add
CodeBlock.Builder.addComment()for adding//comments. (#2340) - New: Add
CodeBlockHolder.Builder.addComment(). (#2347) - New: Use
[]syntax instead ofarrayOfwhen emitting annotation arguments. (#2361) - Fix: Keep the
//prefix on wrapped file comment lines. (#2315) - Fix:
TypeVariableName.equals/hashCodeno longer overflow on recursively bound generics likeEnum<E : Enum<E>>. (#2320) - Fix:
getandsetoperator function names are no longer escaped with backticks. (#2338) - Fix: Don't special case varargs in
KSAnnotation.toAnnotationSpec. (#2360) - Fix:
KSType.toTypeName()with the defaultTypeParameterResolver.EMPTYnow resolves type parameters from their enclosing declarations instead of throwing. (#2368) - Fix: Emit context parameters after annotations in
FunSpecandPropertySpec. (#2374) - Fix: An expression body no longer leaks indentation into later declarations. (#2365)