https://kotlinlang.org logo
e

eygraber

08/02/2023, 10:52 PM
Any idea why K2 shows this warning for the code below -
Expected performance impact from inlining is insignificant. Inlining works best for functions with parameters of functional types
Copy code
@Composable
private inline fun OnboardingWelcomeTheme(
  isAppSplashHidden: Boolean,
  crossinline content: @Composable BoxScope.() -> Unit
)
i

Ivan Kubyshkin [JetBrains]

08/03/2023, 6:23 AM
I failed to reproduce the problem. Can you attach a sample project?
e

eygraber

08/03/2023, 6:40 AM
Will do
🙏 1
d

dmitriy.novozhilov

08/03/2023, 6:57 AM
This is a bug in compiler caused to different implementation of Compose support in K1 and K2 This warnings checks for regular functional and suspend functional types And in K2 composable functions are not just
kotlin.FunctionN
with annotation, but
android.ComposableFunctionN
Please report an issue
e

eygraber

08/03/2023, 7:59 PM
Should this issue be reported in YouTrack or issuetracker?
d

dmitriy.novozhilov

08/04/2023, 6:09 AM
Youtrack