[Fix #664] Accept oneline while when condition has local variable assignment