/test/language/error_warning_msg/bad_eq3.msg

http://github.com/tybor/Liberty · Unknown · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · d6ea50f8c9625aab88d655b191a85ca1 MD5 · raw file

  1. ****** Error: Such a weird comparison with Void is not allowed
  2. because it would be always False. (See explaination below.)
  3. Line 14 column 15 in BAD_EQ3 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_eq3.e):
  4. if i = Void then
  5. ^
  6. ------
  7. ****** Fatal Error: The declaration type of `i' is obviously expanded
  8. (i.e. the written type mark is "INTEGER_32"). You can use the
  9. Void comparison only when other type mark is a reference type
  10. or, if it is an expanded type, it must be an anchor or some formal
  11. generic argument. Fix this error first.
  12. Line 14 column 13 in BAD_EQ3 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_eq3.e):
  13. if i = Void then
  14. ^
  15. ------