compose-lints
compose-lints copied to clipboard
False positive for `ComposeUnstableReceiver` starting with AGP 8.5.0-alpha04 and K2 UAST
The following code will trigger ComposeUnstableReceiver when running with this configuration:
- Kotlin 2.0.0-RC1
- K2 UAST (
android.lint.useK2Uast=true) - Lint 8.5.0-alpha04 and above (
-Pandroid.experimental.lint.version=8.5.0-alpha04) (worked fine onalpha03)
import androidx.compose.ui.graphics.Color
public val Color.transparent: Color
@Composable get() = this.copy(alpha = 0f)
Thanks for the report, we'll take a look. I did notice that alpha04 seemed to have a better understanding of some kotlin language features and being able to see through syntax better