https://kotlinlang.org logo
#intellij
Title
# intellij
t

tarek

01/17/2020, 8:36 AM
Is there any way to disable the warning “‘kotlin.Result’ cannot be used as return type” ? I added the compiler flag so the code compiles and runs ok, it’s just the IDE warning that’s still there and it’s a bit annoying
a

Alexey Belkov [JB]

01/17/2020, 1:53 PM
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
your declaration.
t

tarek

01/17/2020, 3:57 PM
Thanks