Skip to content

Commit 8959e49

Browse files
committed
Migrate to 1.7.0-RC
1 parent 37e40f2 commit 8959e49

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

buildSrc/src/main/kotlin/Versions.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
object Versions {
44
const val intellij = "2022.1"
55

6-
const val project = "2.1.0-162.1"
6+
const val project = "2.1.0-170.1"
77
const val idePlugin = "221-$project"
88

9-
const val kotlin = "1.6.20"
10-
const val coroutines = "1.6.0"
9+
const val kotlin = "1.7.0-RC"
10+
const val coroutines = "1.6.1"
1111

1212
const val publicationGroup = "me.him188"
1313
}

compiler-plugin/build.gradle.kts

+6-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ dependencies tests@{
4646

4747
testImplementation(kotlin("test-junit5"))
4848

49-
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.8-alpha02")
49+
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.9-alpha01") {
50+
exclude("org.jetbrains.kotlin", "kotlin-annotation-processing-embeddable")
51+
}
52+
testRuntimeOnly("org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.7.0-RC")
53+
54+
5055
testImplementation("org.assertj:assertj-core:3.22.0")
5156

5257
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")

compiler-plugin/src/main/kotlin/me/him188/kotlin/jvm/blocking/bridge/compiler/backend/ir/analyzeCapabilityForGeneratingBridges.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fun IrFunction.analyzeCapabilityForGeneratingBridges(ext: IBridgeConfiguration):
7171
}
7272

7373
val containingClass = parentClassOrNull
74-
if (containingClass?.isInline == true) {
74+
if (containingClass?.isValue == true) {
7575
// inside inline class not supported
7676
return InlineClassesNotSupported(jvmBlockingBridgeAnnotation ?: return EnableForModule,
7777
containingClass.descriptor)

compiler-plugin/src/main/kotlin/me/him188/kotlin/jvm/blocking/bridge/compiler/backend/ir/generator.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ internal fun IrFunction.hasDuplicateBridgeFunction(): Boolean = parentFileOrClas
9494

9595
internal fun IrType.isClassType(fqName: FqNameUnsafe, hasQuestionMark: Boolean? = null): Boolean {
9696
if (this !is IrSimpleType) return false
97-
if (hasQuestionMark != null && this.hasQuestionMark != hasQuestionMark) return false
97+
if (hasQuestionMark != null && this.isMarkedNullable() != hasQuestionMark) return false
9898
return classifier.isClassWithFqName(fqName)
9999
}
100100

0 commit comments

Comments
 (0)