if2.zy 201 B

12345678910111213141516
  1. { a = 10;
  2. b = 0;
  3. if a < 9 {
  4. b++
  5. } else {
  6. b += 10 // either this was getting lost
  7. }
  8. (assert (== b 10)) // or this was getting lost
  9. if a > 9 {
  10. b++
  11. }
  12. (assert (== b 11))
  13. }