Skip to content

Commit 761bdeb

Browse files
authored
Fix a build error on nightly compiler version (#4032)
With the newer Kotlin Gradle plugin, we got this error: 'var compilations: NamedDomainObjectContainer<KotlinJvmCompilation>' can't be called in this context by implicit receiver. Use the explicit one if necessary With this change, we use an explicit receiver, as instructed.
1 parent be781c5 commit 761bdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ kotlin {
142142

143143
// For animal sniffer
144144
withJava()
145-
compilations.create("benchmark") { associateWith(compilations.getByName("main")) }
145+
compilations.create("benchmark") { associateWith(this@jvm.compilations.getByName("main")) }
146146
}
147147
}
148148

0 commit comments

Comments
 (0)