Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants