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
… empty
Removal of the arrow in this case would lead to a compilation error as the function literal is changed to a normal block when removing the arrow.
Closes#2465
… empty (#2469)
Removal of the arrow in this case would lead to a compilation error as the function literal is changed to a normal block when removing the arrow.
Closes#2465
… empty (pinterest#2469)
Removal of the arrow in this case would lead to a compilation error as the function literal is changed to a normal block when removing the arrow.
Closespinterest#2465
Probably related to #2331
Expected Behavior
I expect the code compile after ktlint reformats the file
Observed Behavior
Formatted file contains code that doesn't compile
Steps to Reproduce
Type mismatch: inferred type is Unit but (() -> Unit)? was expected
The alternative syntax would be:
but it doesn't fit in a single line, so it may not be preferred in some cases
Your Environment
1.1.0
.editorconfig
settings(I believe this should be enough)
The text was updated successfully, but these errors were encountered: