Skip to content
New issue

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

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

Already on GitHub? # to your account

Unnecessary parentheses from function call with lambda #1068

Closed
KotlinIsland opened this issue Jan 27, 2021 · 0 comments · Fixed by #1326
Closed

Unnecessary parentheses from function call with lambda #1068

KotlinIsland opened this issue Jan 27, 2021 · 0 comments · Fixed by #1326
Assignees
Labels

Comments

@KotlinIsland
Copy link

Expected Rule behavior

fun foo(fn: () -> Unit) = fn()

foo() { println("asdf") } // should report unnecessary parentheses
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
3 participants