Is there a way to disallow implicit return type? I...
# compiler
j
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
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
good point, yet I'd love to force it everywhere.