Skip to content

Commit

Permalink
Prepare for Kotlin 1.9.20 (#495)
Browse files Browse the repository at this point in the history
* Update kotlin to 1.9.20-beta

* Update some APIs

* Update KCT

* Update more

* Update CI

* KCT final
  • Loading branch information
ZacSweers authored Oct 31, 2023
1 parent f3e526d commit 9edf277
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
java: [ '20' ]
kotlin: [ '1.9.10' ]
kotlin: [ '1.9.20' ]
ksp_enabled: [ true, false ]
k2_enabled: [ true, false ]
fail-fast: false
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ gjf = "1.13.0"
incap = "1.0.0"
jdk = "20"
jvmTarget = "11"
kotlin = "1.9.10"
kotlinCompileTesting = "0.3.2"
kotlin = "1.9.20"
kotlinCompileTesting = "0.4.0"
kotlinpoet = "1.14.2"
ksp = "1.9.10-1.0.13"
ksp = "1.9.20-1.0.13"
ktfmt = "0.46"
moshi = "1.15.0"
okhttp = "4.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ internal class IrSourcePrinterVisitor(
if (parent is IrDeclaration) {
parent.renderDeclarationFqn(sb)
} else if (parent is IrPackageFragment) {
sb.append(parent.fqName.toString())
sb.append(parent.packageFqName.toString())
}
} catch (e: UninitializedPropertyAccessException) {
sb.append("<uninitialized parent>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ internal fun IrConstructor.irConstructorBody(
endOffset = endOffset
)
body =
context.irFactory.createBlockBody(
startOffset = startOffset,
endOffset = endOffset,
) {
constructorIrBuilder.blockBody(statements)
}
context.irFactory
.createBlockBody(
startOffset = startOffset,
endOffset = endOffset,
)
.apply { constructorIrBuilder.blockBody(statements) }
}

internal fun DeclarationIrBuilder.irInstanceInitializerCall(
Expand Down

0 comments on commit 9edf277

Please sign in to comment.