diff options
author | Dmitry Khalanskiy <52952525+dkhalanskyjb@users.noreply.github.com> | 2024-02-07 10:47:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 10:47:33 +0300 |
commit | 761bdebfdcfa02de4755d8321e7916cb96d20da1 (patch) | |
tree | 9fbbb7441cceb6faf69abb13d3418ae5ae249aea | |
parent | be781c50bab3758fa5da2897c3aff551d39af4f6 (diff) | |
download | kotlinx.coroutines-761bdebfdcfa02de4755d8321e7916cb96d20da1.tar.gz |
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.
-rw-r--r-- | kotlinx-coroutines-core/build.gradle.kts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kotlinx-coroutines-core/build.gradle.kts b/kotlinx-coroutines-core/build.gradle.kts index fed279d1..9efc7847 100644 --- a/kotlinx-coroutines-core/build.gradle.kts +++ b/kotlinx-coroutines-core/build.gradle.kts @@ -142,7 +142,7 @@ kotlin { // For animal sniffer withJava() - compilations.create("benchmark") { associateWith(compilations.getByName("main")) } + compilations.create("benchmark") { associateWith(this@jvm.compilations.getByName("main")) } } } |