compose-lints icon indicating copy to clipboard operation
compose-lints copied to clipboard

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

Open SimonMarquis opened this issue 1 year ago • 1 comments

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 avatar Apr 16 '24 09:04 SimonMarquis

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

ZacSweers avatar Apr 16 '24 15:04 ZacSweers