You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun <T> remember(
calculation: () -> T
): T {
return calculation()
}
remember {
{ flag: Boolean ->
println(flag)
}
}
should not have any lint warning.
Observed Behavior
fun <T> remember(
calculation: () -> T
): T {
return calculation()
}
remember {
// Report "Missing new line after {" now
{ flag: Boolean ->
println(flag)
}
}
It seems that the lambda is not recognized as lambda.
Context
It's a common pattern in android that remembering a lambda in composable functions like this:
Expected Behavior
should not have any lint warning.
Observed Behavior
It seems that the lambda is not recognized as lambda.
Context
It's a common pattern in android that remembering a lambda in composable functions like this:
Your Environment
The text was updated successfully, but these errors were encountered: