Join Slack
Is there any reason for the first one being possible but not the second one? Is this a limitation of...
# getting-started
j
Johann Pardanaud
03/09/2023, 1:39 PM
Is there any reason for the first one being possible but not the second one? Is this a limitation of the syntax?
✅ 1
Johann Pardanaud
03/09/2023, 1:40 PM
(the
suspend
keyword is not useful here, but in my real use case I make an HTTP request)
e
ephemient
03/09/2023, 1:41 PM
that is probably resolving to the stdlib function (not a keyword in that position)
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/suspend.html
ephemient
03/09/2023, 1:42 PM
see also
https://youtrack.jetbrains.com/issue/KT-22765/Introduce-suspend-modifier-for-lambdas
j
Johann Pardanaud
03/09/2023, 1:49 PM
yeah, that’s what I thought, Intellij is missleading here with its syntax highlighting
Johann Pardanaud
03/09/2023, 1:49 PM
thank you
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by