Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #811
SimonMarquis opened this issue Apr 16, 2024 · 1 comment

Comments

@SimonMarquis
Copy link
Contributor

SimonMarquis commented Apr 16, 2024

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)
SimonMarquis added a commit to adevinta/spark-android that referenced this issue Apr 16, 2024
@ZacSweers
Copy link
Collaborator

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

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

No branches or pull requests

2 participants