For-comprehension on Either.RightProjection with Tuple2 extractor in generator fails to compile · Issue #5589 · scala/bug

The for-comprehension in the attempt method fails to compile, despite the fact that the nearly-equivalent desugared version works fine. object Test extends App { def attempt(in: Int): Either[Int, (...