From 3ffc4c6cf9b54ecdbc61090a62afd0026645d7e0 Mon Sep 17 00:00:00 2001 From: noisegain Date: Tue, 17 Nov 2026 18:51:49 +0300 Subject: [PATCH] Fix MicrobenchmarkSample build RecyclerViewBenchmark.LazyComputedList declared its constructor property as 'private inline val compute'. The Kotlin compiler rejects this with 'Inline property cannot have a backing field', so :microbenchmark:compileReleaseAndroidTestKotlin fails. Drop the modifier. --- .../java/com/example/benchmark/RecyclerViewBenchmark.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MicrobenchmarkSample/microbenchmark/src/androidTest/java/com/example/benchmark/RecyclerViewBenchmark.kt b/MicrobenchmarkSample/microbenchmark/src/androidTest/java/com/example/benchmark/RecyclerViewBenchmark.kt index 08ae6179..dfa686fb 100644 --- a/MicrobenchmarkSample/microbenchmark/src/androidTest/java/com/example/benchmark/RecyclerViewBenchmark.kt +++ b/MicrobenchmarkSample/microbenchmark/src/androidTest/java/com/example/benchmark/RecyclerViewBenchmark.kt @@ -49,7 +49,7 @@ class RecyclerViewBenchmark { class LazyComputedList( override val size: Int = Int.MAX_VALUE, - private inline val compute: (Int) -> T + private val compute: (Int) -> T ) : AbstractList() { override fun get(index: Int): T = compute(index) }