Skip to content

Fix MicrobenchmarkSample build - #373

Open
noisegain wants to merge 1 commit into
android:mainfrom
noisegain:fix-build
Open

noisegain wants to merge 1 commit into
android:mainfrom
noisegain:fix-build

Conversation

@noisegain

@noisegain noisegain commented Nov 18, 2026 •

Copy link
Copy Markdown

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.

None of the GitHub workflows build MicrobenchmarkSample (they only cover MacrobenchmarkSample), so the breakage is not caught by CI.

The modifier had no effect on a property with a backing field, so removing it does not change the benchmark's behaviour.

Tested with ./gradlew :microbenchmark:assembleReleaseAndroidTest.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant