-
Notifications
You must be signed in to change notification settings - Fork 506
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
False positive: unnecessary semicolon #703
Comments
Hm, I just tried to run
Also, looks like it's explicitly handled on line 59: Lines 54 to 63 in cb0595b
Am I missing something, or the actual code was a bit different? |
Closing until we get more information. |
More false positive edge cases like this: https://github.com/Mygod/VPNHotspot/blob/e333c859dfe4e675005a56049c510e5fb4ff270c/mobile/src/main/java/be/mygod/librootkotlinx/RootServer.kt#L498 |
@Mygod so the semicolon is necessary there, right? Mind filing a new issue? |
This is a minimal reproducing sample which is contrived, not the actual code.
The problem is that without the semicolon Kotlin thinks that I'm calling the
Random
constructor with a trailing lambda and fails to compile. Thus, the semicolon is necessary to separate the statement from the lambda (which is an implicit return value).The text was updated successfully, but these errors were encountered: