`shift` is declared as returning a value: ```suspe...
# arrow
c
shift
is declared as returning a value:
Copy code
suspend fun <B> shift(r: R): B
I thought
shift
could only ever short-circuit the operation (thus returning
Nothing
)? That's how I use it in my code, and IntelliJ warns with "Returning type parameter has been inferred to Nothing implicitly. Please specify type arguments explicitly to hide this warning."
s
https://github.com/arrow-kt/arrow/pull/2839 This is planned to change for 2.x.x, discussions in PR.
c
Visual representation of the advantages of Nothing hehe