Skip to content

False positive for ComposeUnstableReceiver starting with AGP 8.5.0-alpha04 and K2 UAST #326

@SimonMarquis

Description

@SimonMarquis

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 on alpha03)
import androidx.compose.ui.graphics.Color

public val Color.transparent: Color
    @Composable get() = this.copy(alpha = 0f)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions