Skip to content

Commit

Permalink
Migrate to 1.7.0-RC
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed May 27, 2022
1 parent 37e40f2 commit 8959e49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
object Versions {
const val intellij = "2022.1"

const val project = "2.1.0-162.1"
const val project = "2.1.0-170.1"
const val idePlugin = "221-$project"

const val kotlin = "1.6.20"
const val coroutines = "1.6.0"
const val kotlin = "1.7.0-RC"
const val coroutines = "1.6.1"

const val publicationGroup = "me.him188"
}
7 changes: 6 additions & 1 deletion compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ dependencies tests@{

testImplementation(kotlin("test-junit5"))

testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.8-alpha02")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.9-alpha01") {
exclude("org.jetbrains.kotlin", "kotlin-annotation-processing-embeddable")
}
testRuntimeOnly("org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.7.0-RC")


testImplementation("org.assertj:assertj-core:3.22.0")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fun IrFunction.analyzeCapabilityForGeneratingBridges(ext: IBridgeConfiguration):
}

val containingClass = parentClassOrNull
if (containingClass?.isInline == true) {
if (containingClass?.isValue == true) {
// inside inline class not supported
return InlineClassesNotSupported(jvmBlockingBridgeAnnotation ?: return EnableForModule,
containingClass.descriptor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal fun IrFunction.hasDuplicateBridgeFunction(): Boolean = parentFileOrClas

internal fun IrType.isClassType(fqName: FqNameUnsafe, hasQuestionMark: Boolean? = null): Boolean {
if (this !is IrSimpleType) return false
if (hasQuestionMark != null && this.hasQuestionMark != hasQuestionMark) return false
if (hasQuestionMark != null && this.isMarkedNullable() != hasQuestionMark) return false
return classifier.isClassWithFqName(fqName)
}

Expand Down

0 comments on commit 8959e49

Please sign in to comment.