Skip to content

Commit 90cc232

Browse files
committed
Bump Kotlin version to 2.1.0.
1 parent 468ac04 commit 90cc232

File tree

6 files changed

+310
-160
lines changed

6 files changed

+310
-160
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.0.0" apply false
2+
kotlin("jvm") version "2.1.0" apply false
33
id("org.jetbrains.dokka") version "1.7.10" apply false
44
id("com.github.gmazzo.buildconfig") version "2.1.0" apply false
55
id("com.vanniktech.maven.publish") version "0.22.0" apply false

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlin.code.style=official
22

3-
VERSION_NAME=2.0.0-1.1.4
3+
VERSION_NAME=2.1.0-1.1.4
44

55
GROUP=com.bennyhuo.kotlin
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

ir-printer-compiler/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616

1717
testImplementation(kotlin("test-junit"))
1818
testImplementation("org.jetbrains.kotlin:kotlin-compiler-embeddable")
19-
testImplementation("com.bennyhuo.kotlin:kotlin-compile-testing-extensions:2.0.0-1.3.0")
19+
testImplementation("com.bennyhuo.kotlin:kotlin-compile-testing-extensions:2.1.0-1.3.0")
2020
}
2121

2222
kotlin {

ir-printer-compiler/src/main/java/com/bennyhuo/kotlin/ir/printer/compiler/output/BuiltinIrSourcePrinter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
11921192
}
11931193
}
11941194

1195-
override fun visitConst(expression: IrConst<*>, data: IrDeclaration?) {
1195+
override fun visitConst(expression: IrConst, data: IrDeclaration?) {
11961196
val kind = expression.kind
11971197

11981198
val (prefix, postfix) = when (kind) {
@@ -1281,7 +1281,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
12811281

12821282
override fun visitElseBranch(branch: IrElseBranch, data: IrDeclaration?) {
12831283
p.printIndent()
1284-
if ((branch.condition as? IrConst<*>)?.value == true) {
1284+
if ((branch.condition as? IrConst)?.value == true) {
12851285
p.printWithNoIndent(if (options.printElseAsTrue) "true" else "else")
12861286
} else {
12871287
p.printWithNoIndent("/* else */ ")

0 commit comments

Comments
 (0)