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

OptionalWhenBraces: false positive with lambda which has no arrow #2567

Closed
t-kameyama opened this issue Apr 1, 2020 · 0 comments · Fixed by #2568
Closed

OptionalWhenBraces: false positive with lambda which has no arrow #2567

t-kameyama opened this issue Apr 1, 2020 · 0 comments · Fixed by #2568

Comments

@t-kameyama
Copy link
Contributor

Steps to Reproduce

fun test(b: Boolean): (Int) -> Int {
    return when (b) {
        true -> { { it + 100 } }
        false -> { { it + 200  } }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants