/test/language/error_warning_msg/bad_if2.msg

http://github.com/tybor/Liberty · Unknown · 37 lines · 31 code · 6 blank · 0 comment · 0 complexity · 9478d8e3530465ec4d56658bc502eaed MD5 · raw file

  1. ****** Warning: Added missing "then" keyword.
  2. Line 13 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  3. elseif 1
  4. ^
  5. ------
  6. ****** Warning: Added missing "then" keyword.
  7. Line 14 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  8. else
  9. ^
  10. ------
  11. ****** Warning: Added missing "end" keyword to finish this "if" instruction.
  12. The source lines relevant to this message are the following:
  13. Line 17 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  14. if True then
  15. ^
  16. Line 18 column 7 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  17. ensure
  18. ^
  19. ------
  20. ****** Error: "if" (or "elseif" as well) must be followed by a
  21. BOOLEAN expression.
  22. Line 13 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  23. elseif 1
  24. ^
  25. ------
  26. ****** Fatal Error: The declaration type of this expression is
  27. INTEGER_8 (this is not BOOLEAN).
  28. Line 13 column 17 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
  29. elseif 1
  30. ^
  31. ------