Skip to content

Fix: Use an if instead of continue inside run so Android compiles (FR-38, #542) - #748

Merged
b-re-w merged 1 commit into
developfrom
feat/fix-android-inline-continue
Nov 13, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/fix-android-inline-continue

Conversation

@b-re-w

@b-re-w b-re-w commented Nov 13, 2026

Copy link
Copy Markdown
Member

Develop failed the Android Kotlin compile: CodeEditorModel.kt:430: The feature "break continue in inline lambdas" is experimental. Two record.color ?: run { ...; continue } blocks from #712 (line and range backgrounds) become val color = record.color; if (color == null) { ...; continue }. Same behaviour on every target. Verified: the Android build of the chat sample (dx, arm64) compiles with exactly this change; android-kotlin copy restaged. Found while building the Flip 4 APK for #570.

…-38, #542)

Two `record.color ?: run { ...; continue }` blocks in CodeEditorModel.kt
(the line and range backgrounds from #712) use continue inside an inline
lambda, which the Android Kotlin compiler rejects as experimental ("break
continue in inline lambdas"), so develop did not build for Android.
Same behaviour, plain if. The Android build of the chat sample compiles
with this change.
@b-re-w
b-re-w merged commit 06d8a66 into develop Nov 13, 2026
@b-re-w
b-re-w deleted the feat/fix-android-inline-continue branch November 13, 2026 13:57
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