Hmm. Ok - it was not your **exact** form. Sorry! All of these also work, 
though: 
    
    
    let test = 0 + (if true: 3 else: 4)
    let test = 0 + (if
                    true: 3 else: 4)
    let test = 0 + (if true:
      3 else: 4)
    let test = 0 + (if true: 3 else:
      4)
    let test = 0 + (if true: 3
    else: 4)
    
    
    Run

but yeah, the one you list does not.

Maybe this is an undocumented (or even documented?) parser limitation or maybe 
it's a bug? I suspect it's some hard to resolve ambiguity in that exact case. 
The `block` workaround you found isn't so bad.

Reply via email to