/test/language/error_warning_msg/bad_agent23.msg

http://github.com/tybor/Liberty · Unknown · 32 lines · 29 code · 3 blank · 0 comment · 0 complexity · 8f7ef3aab7759122e65c7266a6933d69 MD5 · raw file

  1. ****** Warning: Actually, `Void' has no accurate type. Keep in
  2. mind that `Void' is just a way to denote the default value for
  3. a type or to denote the lack of an object. One can use `Void'
  4. as the right-hand-side of an assignment or to replace some actual
  5. argument. (See "http://wiki.liberty-eiffel.org/index.php/Void"
  6. for details.) At time being, the type ANY will be used for this
  7. occurrence `Void'. Please update your code with a more accurate
  8. expression, may be by adding an extra non-initialized local variable.
  9. Line 18 column 32 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
  10. p.call([{INTEGER 3 }, Void])
  11. ^
  12. ------
  13. ****** Warning: Using `Void' as an item of a manifest TUPLE is
  14. not good practice because `Void' has no accurate type. You can
  15. work around by using an extra non-initialized local variable of
  16. some accurate type. Another work around is to use an explicit
  17. creation of the TUPLE. As an example `create {TUPLE[STRING,ANY]}.make_2(Void,Void)'
  18. can be used to create a TUPLE[STRING,ANY] with default values.
  19. Line 18 column 32 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
  20. p.call([{INTEGER 3 }, Void])
  21. ^
  22. ------
  23. ****** Fatal Error: Bad number of actual arguments for agent call.
  24. (The agent you are trying to call has 1 argument. Its type is
  25. ROUTINE[TUPLE[INTEGER_32]].)
  26. Line 18 column 17 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
  27. p.call([{INTEGER 3 }, Void])
  28. ^
  29. ------