We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the special syntax for suspend lambdas without arguments suspend { } , the return type is incorrectly changed.
suspend
suspend { }
fun method ( ) { val lambda: suspend ( ) -> Int = suspend { 1 } }
Results in:
expected: "fun method ( ) { val lambda: suspend ( ) -> Int = suspend { 1 } }" but was: "fun method ( ) { val lambda: Int = suspend { 1 } }"
The text was updated successfully, but these errors were encountered:
Added support of suspend modifier on lambdas.
2cfafc4
fixes #56 #60
fixed by 7c4cdcb
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When using the special syntax for
suspend
lambdas without argumentssuspend { }
, the return type is incorrectly changed.Results in:
The text was updated successfully, but these errors were encountered: