Join Slack
Powered by
Is there a way to disallow implicit return type? I...
# compiler
j
Jan Skrasek
01/27/2021, 7:55 AM
Is there a way to
disallow implicit return type
? It seems to be similarly important as
allWarningsAsErrors
or
explicitApi()
. Or at least some lint anywhere? Thanks.
r
rnett
01/27/2021, 8:06 AM
Doesn't explicit API mode do that?
https://kotlinlang.org/docs/reference/whatsnew14.html#explicit-api-mode-for-library-authors
Although it's only on public declarations.
j
Jan Skrasek
01/27/2021, 5:15 PM
good point, yet I'd love to force it everywhere.
4
Views
Open in Slack
Previous
Next