scala/scala — pull request #814 by hubertp (2012-07-02 12:46:43+00:00)
Title: Closes SI-5969.

Assumption that we enter tryTwice when inferring
the right alternative with an empty buffer is
wrong.
In this particular bug it manifested itself on
if/then/else which share the same context and 'else'
branch was simply flushing the buffer with an
error from the 'then' branch.

Review by @retronym, please (you were on the right track judging from the comments in the bug report).